diff --git a/web/client/src/sections/quanju/containers/public/olMap.js b/web/client/src/sections/quanju/containers/public/olMap.js index 5ac717b8..c8844f76 100644 --- a/web/client/src/sections/quanju/containers/public/olMap.js +++ b/web/client/src/sections/quanju/containers/public/olMap.js @@ -262,6 +262,7 @@ const OlMap = (props) => { selectStyle: { stroke: { width: 8, color: '#9933FF' } }, layerName: 'geometry' + index++ }); + break; } } } @@ -567,7 +568,7 @@ const OlMap = (props) => { layerName: 'geometry_build_road_' + renderIndex }); - // + // 获取线条点位 console.log(olMap, olMap.olLayer) let feat = olMap.olLayer.geometryLayers['geometry_build_road_' + renderIndex].getSource().getFeatures() if (feat.length > 0) { @@ -576,6 +577,8 @@ const OlMap = (props) => { console.log(start); roadPointPosition = start } + + break; } } } @@ -859,7 +862,7 @@ const OlMap = (props) => { { r.scenePic?.map(v =>