From 2681b362f5e4445c65083c5210e2f2730fc4b684 Mon Sep 17 00:00:00 2001 From: wangrui <zephyrs0894@163.com> Date: 星期六, 19 十二月 2020 02:29:08 +0800 Subject: [PATCH] ba --- src/components/helpers/VectorLayerHelper.js | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/helpers/VectorLayerHelper.js b/src/components/helpers/VectorLayerHelper.js index 2917146..04abe59 100644 --- a/src/components/helpers/VectorLayerHelper.js +++ b/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 /** * 璇ユ柟娉曡礋璐e悇绉嶅簳鍥惧姞杞藉埌鍦板浘涓� * 涓嶅悓椤甸潰鍔犺浇鍥惧眰涓嶅悓鏍规嵁妯″潡绫诲瀷閫夋嫨鍔犺浇涓嶅悓鍥惧眰 @@ -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) } } -- Gitblit v1.8.0