|
|
@@ -169,6 +169,7 @@ import AlbumCarousel from "./album_compoents/albumCarousel.vue";
|
|
|
import compareDialog from "./album_compoents/compareDialog.vue";
|
|
|
import album from "./album/index.vue";
|
|
|
import PdfDialog from "../../components/PdfDialog";
|
|
|
+import StaticMapLayers from "@/components/static_map_change/Layers.js"
|
|
|
let store = useStore();
|
|
|
const components = {
|
|
|
homePage,
|
|
|
@@ -186,6 +187,7 @@ const currentRegion = {
|
|
|
name: null,
|
|
|
};
|
|
|
let homeMap = new HomeMap();
|
|
|
+let staticMapLayers = null;
|
|
|
let samplePointLayer = null;
|
|
|
let regionLayer = null;
|
|
|
let blueRegionLayer = null;
|
|
|
@@ -196,7 +198,16 @@ onMounted(() => {
|
|
|
// homeMap.initMap(store.getters.userinfo.location, mapRef.value);
|
|
|
// regionLayer = new RegionLayer(homeMap.kmap.map, currentFarm, currentRegion)
|
|
|
samplePointLayer = new SamplePointLayer(homeMap.kmap);
|
|
|
+ VE_API.warning.fetchWarningLayer({
|
|
|
+ k: "feiniao_static_map",
|
|
|
+ resultType: "json",
|
|
|
+ }).then(({data}) => {
|
|
|
+ staticMapLayers = new StaticMapLayers(homeMap.kmap, data)
|
|
|
+ })
|
|
|
blueRegionLayer = new BlueRegionLayer(homeMap.kmap);
|
|
|
+ function changeStaticMapLayers(e){
|
|
|
+ // staticMapLayers.
|
|
|
+ }
|
|
|
|
|
|
getYellow();
|
|
|
// getFarmLog()
|
|
|
@@ -1061,4 +1072,4 @@ const photoList = ref([
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|