|
|
|
|
@ -143,12 +143,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
map.value.on('click', (e) => {
|
|
|
|
|
|
|
|
|
|
console.log(e);
|
|
|
|
|
console.log(currentFadr.fadr);
|
|
|
|
|
console.log(e.point)
|
|
|
|
|
const features = map.value.queryRenderedFeatures(e.point)
|
|
|
|
|
console.log(features)
|
|
|
|
|
if (!features.length) {
|
|
|
|
|
currentFadr["fadr"].forEach((oldFadr) => {
|
|
|
|
|
map.value.setFeatureState(
|
|
|
|
|
@ -161,10 +156,7 @@ export default {
|
|
|
|
|
);
|
|
|
|
|
})
|
|
|
|
|
currentFadr["fadr"].length = 0;
|
|
|
|
|
console.log("clear fadr");
|
|
|
|
|
}
|
|
|
|
|
console.log(currentFadr.fadr);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
context.emit('mapClick', currentFadr);
|
|
|
|
|
});
|
|
|
|
|
@ -233,4 +225,4 @@ export default {
|
|
|
|
|
height: 100%;
|
|
|
|
|
/* z-index: -1; */
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</style>
|
|
|
|
|
|