From 3ecb480a576bb684f029ec655cd29af621d3c155 Mon Sep 17 00:00:00 2001 From: chenzeping <ChenZeping02609@163.com> Date: 星期二, 09 三月 2021 17:03:13 +0800 Subject: [PATCH] 修改已知问题 --- src/views/MapTemplate.vue | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/views/MapTemplate.vue b/src/views/MapTemplate.vue index a98e84c..36d66bf 100644 --- a/src/views/MapTemplate.vue +++ b/src/views/MapTemplate.vue @@ -10,7 +10,7 @@ </sgis-layer-controller> <monitor-panel></monitor-panel> <!-- <top-enterprise-panel></top-enterprise-panel>--> - <tool-box-panel :map="this.map"></tool-box-panel> + <tool-box-panel ref="toolBox"></tool-box-panel> <menu-special></menu-special> <legend-panel></legend-panel> </div> @@ -75,6 +75,7 @@ init () { const mapcontainer = this.$refs.rootmap this.map = Sgis.initMap(mapcontainer) + this.$refs.toolBox.map = this.map this.basemapHelper = Sgis.initBasemapsHelper(this.map) // 鍒濆鍖栧熀纭�搴曞浘鍔╂墜 this.basemapHelper.initBasemap(this.config, false) // 绗簩涓弬鏁帮紝琛ㄧず鏄惁鍐呯綉搴曞浘 -- Gitblit v1.8.0