修复矢量瓦片尺寸设置错误
This commit is contained in:
@@ -16,7 +16,7 @@ window.mapParam = {
|
||||
// 默认地图中心点
|
||||
center:[116.41020, 39.915119],
|
||||
// 地图最大层级
|
||||
maxZoom:19,
|
||||
maxZoom:18,
|
||||
// 地图最小层级
|
||||
minZoom: 3
|
||||
}
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user