派生自 wuyushui/SewerAndRainNetwork

wangrui
2020-12-22 b59fe688dd6034cf3080889c15113dff052fbabb
src/components/helpers/VectorLayerHelper.js
@@ -1,14 +1,13 @@
/**
 * 业务相关矢量图管理助手,负责业务相关矢量图创建及开关
 */
function VectorLayerHelper(map, L, env) {
    this.map = map
    this.L = L
function VectorLayerHelper(options) {
    this.map = options.map
    this.L = options.L
    this.vectorLayerMap = {}
    this.vectorLayerList = []
    this.vueRefMap = {}
    this.functionMap = {}
    this.env = env
    /**
     * 该方法负责各种底图加载到地图上
     * 不同页面加载图层不同根据模块类型选择加载不同图层
@@ -54,7 +53,7 @@
     * @param name  图层名称
     */
    this.showVectorLayer = (name, vuexStat) => {
        console.log(map, vuexStat)
        console.log(this.map, vuexStat)
    }
    /**
@@ -62,7 +61,7 @@
     * @param name  图层名称
     */
    this.hideVectorLayer = (name, vuexStat) => {
        console.log(map, vuexStat)
        console.log(this.map, vuexStat)
    }
}