From 865ee8cee9dcc21fe2644c5e87ca94326c893bd8 Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Thu, 13 Nov 2025 17:12:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9F=A2=E9=87=8F=E7=93=A6?= =?UTF-8?q?=E7=89=87=E5=B0=BA=E5=AF=B8=E8=AE=BE=E7=BD=AE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/public/static/js/config.js | 2 +- web/src/views/common/MapComponent.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/public/static/js/config.js b/web/public/static/js/config.js index 1bf43500c..43329f722 100644 --- a/web/public/static/js/config.js +++ b/web/public/static/js/config.js @@ -16,7 +16,7 @@ window.mapParam = { // 默认地图中心点 center:[116.41020, 39.915119], // 地图最大层级 - maxZoom:19, + maxZoom:18, // 地图最小层级 minZoom: 3 } diff --git a/web/src/views/common/MapComponent.vue b/web/src/views/common/MapComponent.vue index ea5b1c97c..a14224c73 100755 --- a/web/src/views/common/MapComponent.vue +++ b/web/src/views/common/MapComponent.vue @@ -151,6 +151,7 @@ export default { tileUrl += `?geoCoordSys=${this.mapTileList[this.mapTileIndex].coordinateSystem}&accessToken=${this.$store.getters.token}` let source = new VectorTileSource({ format: new MVT(), + tileSize: 256, url: tileUrl }) let layer = new VectorTileLayer({