From 1c6ae6ae8e200a1d68db875a6a79382487929ef6 Mon Sep 17 00:00:00 2001 From: chenzeping <ChenZeping02609@163.com> Date: 星期一, 08 三月 2021 09:29:47 +0800 Subject: [PATCH] 修改图例弹出/隐藏动画 --- src/views/MapTemplate.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/views/MapTemplate.vue b/src/views/MapTemplate.vue index 34f010c..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> @@ -27,10 +28,12 @@ import ToolBoxPanel from '@components/panel/ToolBoxPanel' import Popup from '@views/popup/Popup' 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