diff --git a/src/assets/geojson/kaifeng/projectArea3.json b/src/assets/geojson/kaifeng/projectArea3.json new file mode 100644 index 0000000..d3c5b06 --- /dev/null +++ b/src/assets/geojson/kaifeng/projectArea3.json @@ -0,0 +1,130 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "id": 0, + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 114.27205420500547, + 34.824331929076266 + ], + [ + 114.27175677237994, + 34.821797803104971 + ], + [ + 114.27128088017878, + 34.818526044221983 + ], + [ + 114.27068601492715, + 34.817217340668776 + ], + [ + 114.26842552697178, + 34.812934310858338 + ], + [ + 114.26747374256934, + 34.808056415796216 + ], + [ + 114.26717630994358, + 34.804606197337932 + ], + [ + 114.26664093121735, + 34.800382654052498 + ], + [ + 114.26699785036828, + 34.797586787370676 + ], + [ + 114.26759271561957, + 34.794077082387162 + ], + [ + 114.26783066172027, + 34.792530432733315 + ], + [ + 114.26919885179848, + 34.790091485202254 + ], + [ + 114.27015063620092, + 34.787890483771889 + ], + [ + 114.27258958373193, + 34.787890483771889 + ], + [ + 114.27276804330722, + 34.787712024196423 + ], + [ + 114.27342239508391, + 34.786819726319266 + ], + [ + 114.27413623338578, + 34.785927428442051 + ], + [ + 114.27544493693881, + 34.784618724888901 + ], + [ + 114.27722953269313, + 34.783072075234998 + ], + [ + 114.27943053412355, + 34.781287479480625 + ], + [ + 114.28073923767681, + 34.780395181603467 + ], + [ + 114.28163153555408, + 34.779026991525257 + ], + [ + 114.28311869868264, + 34.776469070943961 + ], + [ + 114.28418945613521, + 34.774506015614122 + ], + [ + 114.29561086896331, + 34.773506641991673 + ], + [ + 114.29718131322704, + 34.809055789418835 + ], + [ + 114.29803791918914, + 34.823618090774403 + ], + [ + 114.27205420500547, + 34.824331929076266 + ] + ] + }, + "properties": { + "FID": 0, + "Id": 0 + } + } + ] +} \ No newline at end of file diff --git a/src/assets/geojson/kaifeng/projectArea3.json b/src/assets/geojson/kaifeng/projectArea3.json new file mode 100644 index 0000000..d3c5b06 --- /dev/null +++ b/src/assets/geojson/kaifeng/projectArea3.json @@ -0,0 +1,130 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "id": 0, + "geometry": { + "type": "LineString", + "coordinates": [ + [ + 114.27205420500547, + 34.824331929076266 + ], + [ + 114.27175677237994, + 34.821797803104971 + ], + [ + 114.27128088017878, + 34.818526044221983 + ], + [ + 114.27068601492715, + 34.817217340668776 + ], + [ + 114.26842552697178, + 34.812934310858338 + ], + [ + 114.26747374256934, + 34.808056415796216 + ], + [ + 114.26717630994358, + 34.804606197337932 + ], + [ + 114.26664093121735, + 34.800382654052498 + ], + [ + 114.26699785036828, + 34.797586787370676 + ], + [ + 114.26759271561957, + 34.794077082387162 + ], + [ + 114.26783066172027, + 34.792530432733315 + ], + [ + 114.26919885179848, + 34.790091485202254 + ], + [ + 114.27015063620092, + 34.787890483771889 + ], + [ + 114.27258958373193, + 34.787890483771889 + ], + [ + 114.27276804330722, + 34.787712024196423 + ], + [ + 114.27342239508391, + 34.786819726319266 + ], + [ + 114.27413623338578, + 34.785927428442051 + ], + [ + 114.27544493693881, + 34.784618724888901 + ], + [ + 114.27722953269313, + 34.783072075234998 + ], + [ + 114.27943053412355, + 34.781287479480625 + ], + [ + 114.28073923767681, + 34.780395181603467 + ], + [ + 114.28163153555408, + 34.779026991525257 + ], + [ + 114.28311869868264, + 34.776469070943961 + ], + [ + 114.28418945613521, + 34.774506015614122 + ], + [ + 114.29561086896331, + 34.773506641991673 + ], + [ + 114.29718131322704, + 34.809055789418835 + ], + [ + 114.29803791918914, + 34.823618090774403 + ], + [ + 114.27205420500547, + 34.824331929076266 + ] + ] + }, + "properties": { + "FID": 0, + "Id": 0 + } + } + ] +} \ No newline at end of file diff --git a/src/views/sponeScreen/projectHM/ProjectDisplay.vue b/src/views/sponeScreen/projectHM/ProjectDisplay.vue index 3e2354b..de5e7fe 100644 --- a/src/views/sponeScreen/projectHM/ProjectDisplay.vue +++ b/src/views/sponeScreen/projectHM/ProjectDisplay.vue @@ -43,6 +43,7 @@ import projectArea from '@/assets/geojson/kaifeng/projectArea.json'; import projectArea1 from '@/assets/geojson/kaifeng/projectArea1.json'; import projectArea2 from '@/assets/geojson/kaifeng/projectArea2.json'; +import projectArea3 from '@/assets/geojson/kaifeng/projectArea3.json'; const emitM = defineEmits(); const listDataXm = ref([]); @@ -225,6 +226,18 @@ targetColor: 'rbga(0,255,255, 1)', }); newfiberMapbox.addLayer(layer1); + let layer3 = new mapboxL7.LineLayer({ + name: 'projectArea3', + }) + .source(projectArea3) + .size(40) + .shape('wall') + .style({ + opacity: 1, + sourceColor: '#25e2e2', + targetColor: 'rbga(0,255,255, 1)', + }); + newfiberMapbox.addLayer(layer3); newfiberMapbox.map.on('click', ['selectPoint', 'selectPolyLine', 'selectPolygon'], e => { const feature = newfiberMapbox.map @@ -317,6 +330,7 @@ newfiberMapbox.removeLayer(newfiberMapbox.getLayerByName('projectArea')); newfiberMapbox.removeLayer(newfiberMapbox.getLayerByName('projectArea1')); newfiberMapbox.removeLayer(newfiberMapbox.getLayerByName('projectArea2')); + newfiberMapbox.removeLayer(newfiberMapbox.getLayerByName('projectArea3')); });