NEZ-2749 fix: 地图 默认缩放的最大 最小值 改为从接口获取

This commit is contained in:
zhangyu
2023-04-06 11:02:13 +08:00
parent ee995e0ee3
commit 3fe5db7732

View File

@@ -70,8 +70,8 @@ export default {
this.map = new maplibregl.Map({
container: mapId,
style: mapStyle,
maxZoom: 7,
minZoom: 1,
maxZoom: this.mapParam.maxZoom || 7,
minZoom: this.mapParam.minZoom || 1,
renderWorldCopies: false,
maxBounds: [[-179, -85], [179, 85]],
hash: false,