房屋地图
This commit is contained in:
@@ -257,8 +257,14 @@ export default {
|
||||
let {content} = item.geometries?.[0] || {},
|
||||
overlay = new ClusterBubble({map, position: item.center, content})
|
||||
overlay.on('click', () => {
|
||||
this.buildPopup = true
|
||||
this.building = item.geometries?.[0]?.properties || {}
|
||||
// this.building = item.geometries?.[0]?.properties || {}
|
||||
if(item.geometries[0].properties.id) {
|
||||
this.$http.post(`/app/appcommunitybuildinginfo/queryBuildingInfo?buildingId=${item.geometries[0].properties.id}`).then(res => {
|
||||
this.building = res.data
|
||||
this.buildPopup = true
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
markers.push(overlay)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user