From c4044fb60e53e5c83da4ee645d5160f914e422a3 Mon Sep 17 00:00:00 2001 From: YANGDL <114714267@qq.com> Date: 星期五, 05 三月 2021 16:17:41 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/MapTemplate.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/MapTemplate.vue b/src/views/MapTemplate.vue index a54d7fc..a1c32db 100644 --- a/src/views/MapTemplate.vue +++ b/src/views/MapTemplate.vue @@ -12,6 +12,7 @@ <!-- <top-enterprise-panel></top-enterprise-panel>--> <tool-box-panel></tool-box-panel> <menu-special></menu-special> + <legend-panel></legend-panel> </div> </template> @@ -26,11 +27,13 @@ // import TopEnterprisePanel from '@components/panel/TopEnterprisePanel' import ToolBoxPanel from '@components/panel/ToolBoxPanel' import Popup from '@views/popup/Popup' -import MenuSpecial from '@components/panel/MenuSpecial' +import MenuSpecial from '@components/panel/MenuTopic' +import LegendPanel from '@components/panel/LegendPanel' export default { name: 'MapTemplate', components: { + LegendPanel, MenuSpecial, ToolBoxPanel, // TopEnterprisePanel, @@ -77,7 +80,8 @@ this.basemapHelper.initBasemap(this.config, false) // 绗簩涓弬鏁帮紝琛ㄧず鏄惁鍐呯綉搴曞浘 this.serviceLayerHelper = Sgis.initTileLayersHelper(this.map) // 鍒濆鍖栦笟鍔″簳鍥惧姪鎵� - this.serviceLayerHelper.initServiceLayers(this.config) + console.log(this.$refs.popup.$el) + this.serviceLayerHelper.initServiceLayers(this.config, this.$refs.popup) this.vectorLayerHelper = Sgis.initVectorLayersHelper(this.map) // 鍒濆鍖栧姩鎬佽绱犲浘灞傚姪鎵� this.vectorLayerHelper.initVectorLayers(this.config) -- Gitblit v1.8.0