派生自 wuyushui/SewerAndRainNetwork

YANGDL
2021-02-26 56b43d0a37ec52b718b32b00c63eb88f2e2744f3
src/store/modules/map.js
@@ -1,4 +1,4 @@
import mapConfig from '../../conf/MapConfig'
import config from '../../conf/MapConfig'
const state = {
  currentCorp: null,
@@ -14,11 +14,20 @@
  selectedServiceLayer: '', // 使用过滤器时,被打开的WMS服务的CODE
  serviceLayerFilters: {}, // 服务图层控制过滤配置
  checkedLayers: {}, // 选中图层对象
  mapConfig: mapConfig
  // 图层数据
  datas: {
    sewers: []
  },
  config: config,
  serviceLayers: config.mapConfig.Layers
}
const mutations = {
  setMapObj (state, map) {
    state.map = map
  },
  // 设置污雨水图层数据
  setSewersDatas (state, sewersDatas) {
    state.datas.sewers = sewersDatas
  },
  setBasemapHelper (state, layerHelper) {
    state.basemapHelper = layerHelper
@@ -42,9 +51,7 @@
    state.showServiceLayerFilter = !state.showServiceLayerFilter
  }
}
const actions = {
}
const actions = {}
export default {
  state,
  mutations,