From c4044fb60e53e5c83da4ee645d5160f914e422a3 Mon Sep 17 00:00:00 2001
From: YANGDL <114714267@qq.com>
Date: 星期五, 05 三月 2021 16:17:41 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
src/store/modules/map.js | 37 ++++++++++++++++++++++++++++++++-----
1 files changed, 32 insertions(+), 5 deletions(-)
diff --git a/src/store/modules/map.js b/src/store/modules/map.js
index 2a1bff6..83023b9 100644
--- a/src/store/modules/map.js
+++ b/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,37 @@
selectedServiceLayer: '', // 浣跨敤杩囨护鍣ㄦ椂锛岃鎵撳紑鐨刉MS鏈嶅姟鐨凜ODE
serviceLayerFilters: {}, // 鏈嶅姟鍥惧眰鎺у埗杩囨护閰嶇疆
checkedLayers: {}, // 閫変腑鍥惧眰瀵硅薄
- mapConfig: mapConfig
+ // 鍥惧眰鏁版嵁,鍥惧眰瀵硅薄
+ layers: {
+ sewers: []
+ },
+ // 鍘熷鍚庡彴JSON鏁版嵁
+ datas: {
+ sewers: []
+ },
+ topic: {
+ currentTopic: '',
+ topicCheckedList: []
+ },
+ config: config,
+ serviceLayers: config.mapConfig.Layers
}
const mutations = {
setMapObj (state, map) {
state.map = map
+ },
+ // 璁剧疆姹¢洦姘村浘灞傛暟鎹�
+ addSewersLayers (state, sewersLayers) {
+ state.layers.sewers.push(sewersLayers)
+ },
+ clearSewersLayers (state, SewersLayers) {
+ state.layers.sewers = []
+ },
+ addSewersDatas (state, sewersDatas) {
+ state.datas.sewers.push(sewersDatas)
+ },
+ clearSewersDatas (state, sewersDatas) {
+ state.datas.sewers = []
},
setBasemapHelper (state, layerHelper) {
state.basemapHelper = layerHelper
@@ -40,11 +66,12 @@
},
toggleServiceLayerFilter (state) {
state.showServiceLayerFilter = !state.showServiceLayerFilter
+ },
+ setTopic (state, obj) {
+ state.topic.topicCheckedList = obj
}
}
-const actions = {
-
-}
+const actions = {}
export default {
state,
mutations,
--
Gitblit v1.8.0