|
@@ -21,15 +21,18 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div ref="mapRef" class="bottom-map"></div>
|
|
<div ref="mapRef" class="bottom-map"></div>
|
|
|
|
|
+ <track-dialog></track-dialog>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
import "./map/mockFarmLayer";
|
|
import "./map/mockFarmLayer";
|
|
|
import StaticMapLayers from "@/components/static_map_change/Layers.js";
|
|
import StaticMapLayers from "@/components/static_map_change/Layers.js";
|
|
|
-import { onMounted, onUnmounted, ref, reactive, nextTick } from "vue";
|
|
|
|
|
|
|
+import StaticMapPointLayers from "@/components/static_map_change/pointLayer.js"
|
|
|
|
|
+import { onMounted, onUnmounted, ref, nextTick } from "vue";
|
|
|
import fnHeader from "@/components/fnHeader.vue";
|
|
import fnHeader from "@/components/fnHeader.vue";
|
|
|
import landUseLegend from "./components/landUseLegend.vue";
|
|
import landUseLegend from "./components/landUseLegend.vue";
|
|
|
import WarningMap from "./warningMap";
|
|
import WarningMap from "./warningMap";
|
|
|
|
|
+import trackDialog from "./components/trackDialog.vue";
|
|
|
import AlarmLayer from "./map/alarmLayer";
|
|
import AlarmLayer from "./map/alarmLayer";
|
|
|
import DistributionLayer from "./map/distributionLayer";
|
|
import DistributionLayer from "./map/distributionLayer";
|
|
|
import BoundaryLayer from "./map/boundaryLayer";
|
|
import BoundaryLayer from "./map/boundaryLayer";
|
|
@@ -44,6 +47,7 @@ let warningMap = new WarningMap();
|
|
|
let alarmLayer = null;
|
|
let alarmLayer = null;
|
|
|
let staticMapLayers = null;
|
|
let staticMapLayers = null;
|
|
|
let distributionLayer = null;
|
|
let distributionLayer = null;
|
|
|
|
|
+let staticMapPointLayers = null;
|
|
|
let boundaryLayer = null;
|
|
let boundaryLayer = null;
|
|
|
const mapRef = ref(null);
|
|
const mapRef = ref(null);
|
|
|
const treeRef = ref(null);
|
|
const treeRef = ref(null);
|
|
@@ -69,6 +73,10 @@ const warningLayers = ref({});
|
|
|
|
|
|
|
|
const handleBaseTabClick = (tab) => {
|
|
const handleBaseTabClick = (tab) => {
|
|
|
activeBaseTab.value = tab;
|
|
activeBaseTab.value = tab;
|
|
|
|
|
+ staticMapPointLayers.hidePoint()
|
|
|
|
|
+ if (tab === "资源") {
|
|
|
|
|
+ staticMapPointLayers.showPoint()
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const handleSmartFarmClick = () => {
|
|
const handleSmartFarmClick = () => {
|
|
@@ -91,6 +99,7 @@ onMounted(async () => {
|
|
|
|
|
|
|
|
alarmLayer = new AlarmLayer(warningMap.kmap);
|
|
alarmLayer = new AlarmLayer(warningMap.kmap);
|
|
|
staticMapLayers = new StaticMapLayers(warningMap.kmap);
|
|
staticMapLayers = new StaticMapLayers(warningMap.kmap);
|
|
|
|
|
+ staticMapPointLayers = new StaticMapPointLayers(warningMap.kmap);
|
|
|
distributionLayer = new DistributionLayer(warningMap.kmap);
|
|
distributionLayer = new DistributionLayer(warningMap.kmap);
|
|
|
boundaryLayer = new BoundaryLayer(warningMap.kmap);
|
|
boundaryLayer = new BoundaryLayer(warningMap.kmap);
|
|
|
await getSpeciesListData();
|
|
await getSpeciesListData();
|
|
@@ -177,8 +186,6 @@ onMounted(async () => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- // 初始化区域选择器的默认值
|
|
|
|
|
- initAreaDefaultValue();
|
|
|
|
|
|
|
|
|
|
// 窗口大小改变时更新地图尺寸
|
|
// 窗口大小改变时更新地图尺寸
|
|
|
const handleResize = () => {
|
|
const handleResize = () => {
|