diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index e198505..113875e 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -129,7 +129,10 @@ console.log("properties", properties, layerId); // 图层点击事件 - if (properties) properties.type = (properties.type == _keys[4]) && properties.pointType,bus.emit("FenQuClick", {properties,layerId}); + if (properties) { + if(properties.type == _keys[4])properties.type = properties.pointType + bus.emit("FenQuClick", {properties,layerId}); + } clearTrajectory(); // clearTemporaryData(); proxy.$emit("map-click1", lngLat, properties, layerId);