diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index e183b6d..d9f6ab4 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -459,9 +459,7 @@ const getModalData = () => { isClockInRange(); - Object.keys(events_params) - .filter((key) => events_params[key].method) - .forEach((key) => busOn(events_params[key].key, events_params[key].method)); + Object.keys(events_params).filter((key) => events_params[key].method).forEach((key) => busOn(events_params[key].key, events_params[key].method)); // 获取地图项目数据 dataToMap({}); createPopup(); @@ -469,7 +467,6 @@ proxy.$emit("loadCallback"); ww(); ysFlow(); - newfiberMap.contextMenu = new mapboxgl1.ContextMenu({items: [ { text: '街景', @@ -497,6 +494,8 @@ } ]}) newfiberMap.contextMenu.addTo(newfiberMap.map); + + bus.emit(mapInitBusName); }; const ysFlow = (geojson) => {