From 30c3c06760f6412cbdb2a3a8418e1f0d43e66d30 Mon Sep 17 00:00:00 2001
From: chenyabin <Chenab123!>
Date: 星期一, 19 四月 2021 18:15:34 +0800
Subject: [PATCH] 完成附属设施功能。1

---
 src/components/helpers/VectorLayerHelper.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/helpers/VectorLayerHelper.js b/src/components/helpers/VectorLayerHelper.js
index 38b9102..3db8743 100644
--- a/src/components/helpers/VectorLayerHelper.js
+++ b/src/components/helpers/VectorLayerHelper.js
@@ -3,7 +3,7 @@
  */
 function VectorLayerHelper (options) {
   this.map = options.map
-  this.L = options.L
+  this.L = window.L
   this.vectorLayerMap = new Map()
   this.vectorLayerList = []
   this.vectorLayerGroup = null
@@ -14,7 +14,7 @@
      * @param map
      */
   this.initVectorLayers = (vueState) => {
-    this.vectorLayerGroup = options.L.layerGroup().addTo(options.map)
+    this.vectorLayerGroup = this.L.layerGroup().addTo(options.map)
     this.vueState = vueState
   }
 

--
Gitblit v1.8.0