From 47db5ff33fbb9df546b24759d52699a68fd4e841 Mon Sep 17 00:00:00 2001 From: wangrui <zephyrs0894@163.com> Date: 星期二, 22 十二月 2020 18:01:18 +0800 Subject: [PATCH] 修改底图错位的问题。 --- src/views/MapTemplate.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/MapTemplate.vue b/src/views/MapTemplate.vue index 6ee012d..9dfea6c 100644 --- a/src/views/MapTemplate.vue +++ b/src/views/MapTemplate.vue @@ -39,10 +39,10 @@ this.serviceLayerHelper = Sgis.initTileLayersHelper(this.mapObj.map, this.mapObj.L) // 鍒濆鍖栦笟鍔″簳鍥惧姪鎵� - this.serviceLayerHelper.initServiceLayers() + this.serviceLayerHelper.initServiceLayers(mapConfig) this.vectorLayerHelper = Sgis.initVectorLayersHelper(this.mapObj.map, this.mapObj.L) // 鍒濆鍖栧姩鎬佽绱犲浘灞傚姪鎵� - this.vectorLayerHelper.initVectorLayers() + this.vectorLayerHelper.initVectorLayers(mapConfig) this.setLayerHelper(this.vectorLayerHelper) return this.map -- Gitblit v1.8.0