diff --git a/src/modes/direct_select.js b/src/modes/direct_select.js index 32f0a3483..53d72c193 100644 --- a/src/modes/direct_select.js +++ b/src/modes/direct_select.js @@ -47,6 +47,7 @@ DirectSelect.stopDragging = function(state) { DirectSelect.onVertex = function (state, e) { this.startDragging(state, e); const about = e.featureTarget.properties; + if (typeof about.coord_path !== 'string') about.coord_path = String(about.coord_path); const selectedIndex = state.selectedCoordPaths.indexOf(about.coord_path); if (!isShiftDown(e) && selectedIndex === -1) { state.selectedCoordPaths = [about.coord_path];