修复矢量瓦片尺寸设置错误
This commit is contained in:
@@ -16,7 +16,7 @@ window.mapParam = {
|
|||||||
// 默认地图中心点
|
// 默认地图中心点
|
||||||
center:[116.41020, 39.915119],
|
center:[116.41020, 39.915119],
|
||||||
// 地图最大层级
|
// 地图最大层级
|
||||||
maxZoom:19,
|
maxZoom:18,
|
||||||
// 地图最小层级
|
// 地图最小层级
|
||||||
minZoom: 3
|
minZoom: 3
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -151,6 +151,7 @@ export default {
|
|||||||
tileUrl += `?geoCoordSys=${this.mapTileList[this.mapTileIndex].coordinateSystem}&accessToken=${this.$store.getters.token}`
|
tileUrl += `?geoCoordSys=${this.mapTileList[this.mapTileIndex].coordinateSystem}&accessToken=${this.$store.getters.token}`
|
||||||
let source = new VectorTileSource({
|
let source = new VectorTileSource({
|
||||||
format: new MVT(),
|
format: new MVT(),
|
||||||
|
tileSize: 256,
|
||||||
url: tileUrl
|
url: tileUrl
|
||||||
})
|
})
|
||||||
let layer = new VectorTileLayer({
|
let layer = new VectorTileLayer({
|
||||||
|
|||||||
Reference in New Issue
Block a user