|
|
@ -549,7 +549,7 @@ export default { |
|
|
|
.active(true); |
|
|
|
scene.addLayer(textLayer); |
|
|
|
|
|
|
|
polygonLayer.on("mouseenter", (e) => { |
|
|
|
// polygonLayer.on("mouseenter", (e) => { |
|
|
|
// const { lng, lat } = e.lngLat; |
|
|
|
// const popup = new Popup({ |
|
|
|
// title: e.feature.properties.name, |
|
|
@ -560,8 +560,8 @@ export default { |
|
|
|
// }, |
|
|
|
// }); |
|
|
|
|
|
|
|
scene.addPopup(layerPopup); |
|
|
|
}); |
|
|
|
// scene.addPopup(layerPopup); |
|
|
|
// }); |
|
|
|
|
|
|
|
polygonLayer.on("mousemove", (e) => { |
|
|
|
polygonLayer.style({ |
|
|
@ -569,7 +569,6 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
polygonLayer.on("click", (e) => { |
|
|
|
console.log("click::", e.feature.properties); |
|
|
|
this.$emit("clickAgency", e.feature.properties); |
|
|
|
}); |
|
|
|
|
|
|
|