2026-03-27 15:52:43 +08:00
|
|
|
<template>
|
2026-03-31 14:17:30 +08:00
|
|
|
<div class="gis-view">
|
|
|
|
|
<div id="mapContainer" />
|
|
|
|
|
<!-- 地图图例 -->
|
2026-04-03 16:04:16 +08:00
|
|
|
<!-- tabType="{baseType[0]?.tagType}"
|
2026-03-31 14:17:30 +08:00
|
|
|
legendData="{legendData}"
|
|
|
|
|
legendDataMap="{legendDataMap}"
|
|
|
|
|
setLegendDataMap="{updateLegendDataMap}"
|
|
|
|
|
dvtpType="{dvtpType}"
|
|
|
|
|
mapList="{mapList}"
|
|
|
|
|
loading="{loading}"
|
|
|
|
|
pointData="{pointData}" -->
|
2026-04-03 16:04:16 +08:00
|
|
|
<MapLegend />
|
2026-03-31 14:17:30 +08:00
|
|
|
<!-- 地图筛选器 -->
|
|
|
|
|
<MapFilter />
|
|
|
|
|
<!-- 地图控制器 -->
|
|
|
|
|
<MapController />
|
|
|
|
|
<!-- 基础图层切换器 -->
|
|
|
|
|
<BaseLayerSwitcher />
|
|
|
|
|
<!-- <MapFilter inverse={true} searchList={mapSearchList} pointData={pointData} fish={fish}
|
|
|
|
|
wqElementsList={wqElementsList} className={'map-filter'} initialValues={{ timeRange: searchTimeRange, dvtp: dvtpType, year: yearTime }}
|
|
|
|
|
getFormRef={(ref: any) => (mapFilterFormRef.current = ref)}
|
|
|
|
|
fetchPointData={fetchPointData} /> -->
|
|
|
|
|
</div>
|
2026-03-27 15:52:43 +08:00
|
|
|
</template>
|
2026-03-31 14:17:30 +08:00
|
|
|
<script setup lang="ts">
|
2026-04-03 16:04:16 +08:00
|
|
|
import { onMounted } from "vue";
|
2026-03-31 14:17:30 +08:00
|
|
|
import MapLegend from "@/components/mapLegend/index.vue";
|
|
|
|
|
import MapFilter from "@/components/mapFilter/index.vue";
|
|
|
|
|
import MapController from "@/components/mapController/index.vue";
|
2026-04-03 16:04:16 +08:00
|
|
|
import BaseLayerSwitcher from "@/components/BaseLayerSwitcher/index.vue";
|
|
|
|
|
|
|
|
|
|
import { MapClass } from './map.class'
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
const mapClass = MapClass.getInstance()
|
|
|
|
|
// const globalData = GlobalData.getInstance()
|
|
|
|
|
//@ts-ignore
|
|
|
|
|
window.mapClass = mapClass
|
|
|
|
|
})
|
2026-03-31 14:17:30 +08:00
|
|
|
</script>
|
2026-03-27 15:52:43 +08:00
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.gis-view {
|
2026-03-31 14:17:30 +08:00
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
position: absolute;
|
|
|
|
|
visibility: visible;
|
2026-03-27 15:52:43 +08:00
|
|
|
}
|
|
|
|
|
#mapContainer {
|
2026-03-31 14:17:30 +08:00
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
2026-04-03 16:04:16 +08:00
|
|
|
position: absolute;
|
|
|
|
|
background-color: #fff;
|
2026-03-27 15:52:43 +08:00
|
|
|
}
|
|
|
|
|
</style>
|