| | |
| | | /** |
| | | * 业务相关矢量图管理助手,负责业务相关矢量图创建及开关 |
| | | */ |
| | | 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 |
| | | /** |
| | | * 该方法负责各种底图加载到地图上 |
| | | * 不同页面加载图层不同根据模块类型选择加载不同图层 |
| | |
| | | * @param name 图层名称 |
| | | */ |
| | | this.showVectorLayer = (name, vuexStat) => { |
| | | console.log(map, vuexStat) |
| | | console.log(this.map, vuexStat) |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param name 图层名称 |
| | | */ |
| | | this.hideVectorLayer = (name, vuexStat) => { |
| | | console.log(map, vuexStat) |
| | | console.log(this.map, vuexStat) |
| | | } |
| | | } |
| | | |