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

This commit is contained in:
zhangyu
2023-04-06 10:55:08 +08:00
parent f2d5a7a269
commit beae2e1748

View File

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