|
@@ -107,6 +107,8 @@ import { useRouter } from "vue-router";
|
|
import eventBus from "@/api/eventBus";
|
|
import eventBus from "@/api/eventBus";
|
|
import { areaListOptions } from "./area";
|
|
import { areaListOptions } from "./area";
|
|
import { useStore } from "vuex";
|
|
import { useStore } from "vuex";
|
|
|
|
+import Legend from "../../components/static_map_change/legend";
|
|
|
|
+
|
|
let store = useStore();
|
|
let store = useStore();
|
|
|
|
|
|
let warningMap = new WarningMap();
|
|
let warningMap = new WarningMap();
|
|
@@ -123,6 +125,9 @@ onMounted(() => {
|
|
warningMap.initMap(store.getters.userinfo.location, mapRef.value);
|
|
warningMap.initMap(store.getters.userinfo.location, mapRef.value);
|
|
alarmLayer = new AlarmLayer(warningMap.kmap);
|
|
alarmLayer = new AlarmLayer(warningMap.kmap);
|
|
staticMapLayers = new StaticMapLayers(warningMap.kmap);
|
|
staticMapLayers = new StaticMapLayers(warningMap.kmap);
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // staticMapLayers.show("testpng")
|
|
|
|
+ // },2000)
|
|
|
|
|
|
// 图例数据
|
|
// 图例数据
|
|
eventBus.on("alarmList:warningLayers", (data) => {
|
|
eventBus.on("alarmList:warningLayers", (data) => {
|
|
@@ -147,6 +152,7 @@ const handleMapLayer = (name) => {
|
|
hideChatMapLayer.value = false
|
|
hideChatMapLayer.value = false
|
|
console.log('name', name);
|
|
console.log('name', name);
|
|
// staticMapLayers.show("干旱缺水")
|
|
// staticMapLayers.show("干旱缺水")
|
|
|
|
+ staticMapLayers.show("testpng")
|
|
}
|
|
}
|
|
|
|
|
|
const toggleChatMapLayer = () => {
|
|
const toggleChatMapLayer = () => {
|