diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index 8a4aef5..9952eff 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -541,6 +541,9 @@ const data = result.data; const k = keys[idx]; if (!data) return; + const filteredData = filterGeometryNotEmpty(data); + console.log('filteredData',filteredData); + appStore.SET_MapData(filteredData); bus.emit("changeData"); const groups = data_default_params[k].groupMethod(data); const g_keys = Object.keys(groups); diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index 8a4aef5..9952eff 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -541,6 +541,9 @@ const data = result.data; const k = keys[idx]; if (!data) return; + const filteredData = filterGeometryNotEmpty(data); + console.log('filteredData',filteredData); + appStore.SET_MapData(filteredData); bus.emit("changeData"); const groups = data_default_params[k].groupMethod(data); const g_keys = Object.keys(groups); diff --git a/src/views/pictureOnMap/LayerControl.vue b/src/views/pictureOnMap/LayerControl.vue index 870b94e..0432480 100644 --- a/src/views/pictureOnMap/LayerControl.vue +++ b/src/views/pictureOnMap/LayerControl.vue @@ -203,6 +203,7 @@ changeyangshi(); }); bus.on('YQ_head', val => { + console.log('valvalvalval',val); if (val == false) { Show.value = false; } else { diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index 8a4aef5..9952eff 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -541,6 +541,9 @@ const data = result.data; const k = keys[idx]; if (!data) return; + const filteredData = filterGeometryNotEmpty(data); + console.log('filteredData',filteredData); + appStore.SET_MapData(filteredData); bus.emit("changeData"); const groups = data_default_params[k].groupMethod(data); const g_keys = Object.keys(groups); diff --git a/src/views/pictureOnMap/LayerControl.vue b/src/views/pictureOnMap/LayerControl.vue index 870b94e..0432480 100644 --- a/src/views/pictureOnMap/LayerControl.vue +++ b/src/views/pictureOnMap/LayerControl.vue @@ -203,6 +203,7 @@ changeyangshi(); }); bus.on('YQ_head', val => { + console.log('valvalvalval',val); if (val == false) { Show.value = false; } else { diff --git a/src/views/pictureOnMap/inputSearch.vue b/src/views/pictureOnMap/inputSearch.vue index 282aa28..98e4ff6 100644 --- a/src/views/pictureOnMap/inputSearch.vue +++ b/src/views/pictureOnMap/inputSearch.vue @@ -93,6 +93,7 @@ onMounted(() => { bus.on('YQ_head', val => { + console.log('appStore.MapData',appStore.MapData); if (val == false) { Show.value = false; } else {