From b0bca45d110dba6d011fb03db15bc5179d85d0aa Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 7 Jul 2022 10:31:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xicheng/AppMerchantMap/AppMerchantMap.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/project/xicheng/AppMerchantMap/AppMerchantMap.vue b/src/project/xicheng/AppMerchantMap/AppMerchantMap.vue index 13bf52e5..6581f829 100644 --- a/src/project/xicheng/AppMerchantMap/AppMerchantMap.vue +++ b/src/project/xicheng/AppMerchantMap/AppMerchantMap.vue @@ -32,8 +32,7 @@ polygons: [], labels: [], businessName: '', - ops: { - }, + ops: {}, markers: [], isShow: false, MarkerCluster: null, @@ -61,9 +60,9 @@ this.isShow = false this.map.easeTo({ center: new this.lib.LatLng(item.lat, item.lng), - zoom: 17 + zoom: 20 }, { - duration: 2000 + duration: 800 }) }, @@ -155,8 +154,6 @@ } } - // this.config.latlng && map.setCenter(this.config.latlng) - this.MarkerCluster = new TMap.MarkerCluster({ map, gridSize: 60, enableDefaultStyle: false, // 关闭默认样式 @@ -166,7 +163,8 @@ content: `${e.name}`, properties: {...e} })) || [], - zoomOnClick: true + zoomOnClick: true, + maxZoom: 18 }) this.setCenter(points.map(e => { return new TMap.LatLng(e.lat, e.lng)