diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index 6c472b5..2d6cf23 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -556,7 +556,9 @@ items: [ { text: "街景", - callback: async (point, feature, layerId) => { + callback: async (point1, feature, layerId) => { + console.log("周边街景经纬度1", point1); + let point = _.cloneDeep(point1); let clickPoint = turf.point(Object.values(point)); let positionAddress = ""; gcoord.transform(clickPoint, gcoord.WGS84, gcoord.BD09); @@ -582,6 +584,7 @@ point: turf.getCoords(clickPoint), popupInfo: data, }); + console.log("周边街景经纬度2", turf.getCoords(clickPoint)); }, }, ], diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index 6c472b5..2d6cf23 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -556,7 +556,9 @@ items: [ { text: "街景", - callback: async (point, feature, layerId) => { + callback: async (point1, feature, layerId) => { + console.log("周边街景经纬度1", point1); + let point = _.cloneDeep(point1); let clickPoint = turf.point(Object.values(point)); let positionAddress = ""; gcoord.transform(clickPoint, gcoord.WGS84, gcoord.BD09); @@ -582,6 +584,7 @@ point: turf.getCoords(clickPoint), popupInfo: data, }); + console.log("周边街景经纬度2", turf.getCoords(clickPoint)); }, }, ], diff --git a/src/components/Map/streetSpace.vue b/src/components/Map/streetSpace.vue index 4d1b3cc..736c92f 100644 --- a/src/components/Map/streetSpace.vue +++ b/src/components/Map/streetSpace.vue @@ -88,7 +88,7 @@ lonlat: [element.location.lng, element.location.lat], imagesUrl: data.data.base64, }); - selectPoiImgUrl(AllData.poiImages[0]); + // selectPoiImgUrl(AllData.poiImages[0]); } }); console.log("AllData.poiImages---", AllData.poiImages); @@ -97,11 +97,14 @@ // 全局事件监听 const showAllStreet = (e) => { console.log("streetPosition---", e); + + console.log("周边街景经纬度5-3", e); let position_Street = turf.point(e); gcoord.transform(position_Street, gcoord.WGS84, gcoord.BD09); AllData.poiCircle = position_Street.geometry.coordinates; console.log("🚀 ~ showAllStreet ~ AllData.poiCircle:", AllData.poiCircle); setTimeout(() => { + // debugger; AllData.panorama.setPosition( new BMapGL.Point( position_Street.geometry.coordinates[0], @@ -110,7 +113,7 @@ ); }, 2000); searchPoiByLonlat(); - gcoord.transform(position_Street, gcoord.BD09, gcoord.WGS84); + // gcoord.transform(position_Street, gcoord.BD09, gcoord.WGS84); }; //轮播图点击事件 const selectPoiImgUrl = (item) => { @@ -124,7 +127,10 @@ onMounted(() => { initePanoramaMap(); - if (props.location.length) showAllStreet(props.location); + if (props.location.length) { + console.log("周边街景经纬度5-1", e); + showAllStreet(props.location); + } }); onBeforeUnmount(() => {}); diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index 6c472b5..2d6cf23 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -556,7 +556,9 @@ items: [ { text: "街景", - callback: async (point, feature, layerId) => { + callback: async (point1, feature, layerId) => { + console.log("周边街景经纬度1", point1); + let point = _.cloneDeep(point1); let clickPoint = turf.point(Object.values(point)); let positionAddress = ""; gcoord.transform(clickPoint, gcoord.WGS84, gcoord.BD09); @@ -582,6 +584,7 @@ point: turf.getCoords(clickPoint), popupInfo: data, }); + console.log("周边街景经纬度2", turf.getCoords(clickPoint)); }, }, ], diff --git a/src/components/Map/streetSpace.vue b/src/components/Map/streetSpace.vue index 4d1b3cc..736c92f 100644 --- a/src/components/Map/streetSpace.vue +++ b/src/components/Map/streetSpace.vue @@ -88,7 +88,7 @@ lonlat: [element.location.lng, element.location.lat], imagesUrl: data.data.base64, }); - selectPoiImgUrl(AllData.poiImages[0]); + // selectPoiImgUrl(AllData.poiImages[0]); } }); console.log("AllData.poiImages---", AllData.poiImages); @@ -97,11 +97,14 @@ // 全局事件监听 const showAllStreet = (e) => { console.log("streetPosition---", e); + + console.log("周边街景经纬度5-3", e); let position_Street = turf.point(e); gcoord.transform(position_Street, gcoord.WGS84, gcoord.BD09); AllData.poiCircle = position_Street.geometry.coordinates; console.log("🚀 ~ showAllStreet ~ AllData.poiCircle:", AllData.poiCircle); setTimeout(() => { + // debugger; AllData.panorama.setPosition( new BMapGL.Point( position_Street.geometry.coordinates[0], @@ -110,7 +113,7 @@ ); }, 2000); searchPoiByLonlat(); - gcoord.transform(position_Street, gcoord.BD09, gcoord.WGS84); + // gcoord.transform(position_Street, gcoord.BD09, gcoord.WGS84); }; //轮播图点击事件 const selectPoiImgUrl = (item) => { @@ -124,7 +127,10 @@ onMounted(() => { initePanoramaMap(); - if (props.location.length) showAllStreet(props.location); + if (props.location.length) { + console.log("周边街景经纬度5-1", e); + showAllStreet(props.location); + } }); onBeforeUnmount(() => {}); diff --git a/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue index 76d12a2..bd406dc 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue @@ -33,7 +33,7 @@ () => props.waterRegionCode, (val) => { console.log("YSIndex_right:分区编号变了", val); - debugger + // debugger if(val!=''){ filetData(val) }else{ diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index 6c472b5..2d6cf23 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -556,7 +556,9 @@ items: [ { text: "街景", - callback: async (point, feature, layerId) => { + callback: async (point1, feature, layerId) => { + console.log("周边街景经纬度1", point1); + let point = _.cloneDeep(point1); let clickPoint = turf.point(Object.values(point)); let positionAddress = ""; gcoord.transform(clickPoint, gcoord.WGS84, gcoord.BD09); @@ -582,6 +584,7 @@ point: turf.getCoords(clickPoint), popupInfo: data, }); + console.log("周边街景经纬度2", turf.getCoords(clickPoint)); }, }, ], diff --git a/src/components/Map/streetSpace.vue b/src/components/Map/streetSpace.vue index 4d1b3cc..736c92f 100644 --- a/src/components/Map/streetSpace.vue +++ b/src/components/Map/streetSpace.vue @@ -88,7 +88,7 @@ lonlat: [element.location.lng, element.location.lat], imagesUrl: data.data.base64, }); - selectPoiImgUrl(AllData.poiImages[0]); + // selectPoiImgUrl(AllData.poiImages[0]); } }); console.log("AllData.poiImages---", AllData.poiImages); @@ -97,11 +97,14 @@ // 全局事件监听 const showAllStreet = (e) => { console.log("streetPosition---", e); + + console.log("周边街景经纬度5-3", e); let position_Street = turf.point(e); gcoord.transform(position_Street, gcoord.WGS84, gcoord.BD09); AllData.poiCircle = position_Street.geometry.coordinates; console.log("🚀 ~ showAllStreet ~ AllData.poiCircle:", AllData.poiCircle); setTimeout(() => { + // debugger; AllData.panorama.setPosition( new BMapGL.Point( position_Street.geometry.coordinates[0], @@ -110,7 +113,7 @@ ); }, 2000); searchPoiByLonlat(); - gcoord.transform(position_Street, gcoord.BD09, gcoord.WGS84); + // gcoord.transform(position_Street, gcoord.BD09, gcoord.WGS84); }; //轮播图点击事件 const selectPoiImgUrl = (item) => { @@ -124,7 +127,10 @@ onMounted(() => { initePanoramaMap(); - if (props.location.length) showAllStreet(props.location); + if (props.location.length) { + console.log("周边街景经纬度5-1", e); + showAllStreet(props.location); + } }); onBeforeUnmount(() => {}); diff --git a/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue index 76d12a2..bd406dc 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right.vue @@ -33,7 +33,7 @@ () => props.waterRegionCode, (val) => { console.log("YSIndex_right:分区编号变了", val); - debugger + // debugger if(val!=''){ filetData(val) }else{ diff --git a/src/views/pictureOnMap/page/components/DialogTabs/component/zhoubianjiejing.vue b/src/views/pictureOnMap/page/components/DialogTabs/component/zhoubianjiejing.vue index bf05a70..3fd86dd 100644 --- a/src/views/pictureOnMap/page/components/DialogTabs/component/zhoubianjiejing.vue +++ b/src/views/pictureOnMap/page/components/DialogTabs/component/zhoubianjiejing.vue @@ -1,7 +1,7 @@ @@ -11,19 +11,19 @@ const { proxy } = getCurrentInstance(); const props = defineProps({ - Getproperties: { type: Object, }, }); -const location=ref([]) +const location = ref([]); onMounted(() => { - console.log('Getproperties.geometry',props.Getproperties.geometry); - if(props.Getproperties.geometry){ - let data = turf.getCoords(Terraformer.WKT.parse(props.Getproperties.geometry)); - location.value=data - } + console.log("Getproperties.geometry", props.Getproperties.geometry); + if (props.Getproperties.geometry) { + let data = turf.getCoords(Terraformer.WKT.parse(props.Getproperties.geometry)); + location.value = data; + console.log("周边街景经纬度3", location.value); + } });