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({