diff --git a/src/components/Map/popup.vue b/src/components/Map/popup.vue index f27984c..367ac54 100644 --- a/src/components/Map/popup.vue +++ b/src/components/Map/popup.vue @@ -85,7 +85,7 @@ AllData.dataList.rainpump = JSON.parse(AllData.dataList.rainpump); AllData.dataList.sweagepump = JSON.parse(AllData.dataList.sweagepump); } - AllData.dataList.geometry = `POINT${params.point.join(' ')}` + AllData.dataList.geometry = `POINT(${params.point.join(' ')})` window.pipePopup = new mapboxL7.Popup({ html: pipePopupDiv, lngLat: { diff --git a/src/components/Map/popup.vue b/src/components/Map/popup.vue index f27984c..367ac54 100644 --- a/src/components/Map/popup.vue +++ b/src/components/Map/popup.vue @@ -85,7 +85,7 @@ AllData.dataList.rainpump = JSON.parse(AllData.dataList.rainpump); AllData.dataList.sweagepump = JSON.parse(AllData.dataList.sweagepump); } - AllData.dataList.geometry = `POINT${params.point.join(' ')}` + AllData.dataList.geometry = `POINT(${params.point.join(' ')})` window.pipePopup = new mapboxL7.Popup({ html: pipePopupDiv, lngLat: { diff --git a/src/views/pictureOnMap/inputSearch.vue b/src/views/pictureOnMap/inputSearch.vue index 92e9af0..9c9d27e 100644 --- a/src/views/pictureOnMap/inputSearch.vue +++ b/src/views/pictureOnMap/inputSearch.vue @@ -63,6 +63,7 @@ }); // console.log('MapData', appStore.MapData, SelectList.value); filterList.value = JSON.parse(JSON.stringify(SelectList.value)); + debugger; } // 值改变后的操作 @@ -71,6 +72,7 @@ let feature = turf.feature(Terraformer.WKT.parse(value)); bus.emit('setHighlight',feature); newfiberMap.map.easeTo({center:turf.getCoords(turf.center(feature)),zoom:15}); + busEmit(events_params.setGeoJSON.key, { json: turf.featureCollection([feature]), key: 'clickPoint' }); } /* if (value) {