NEZ-2749 fix: 地图 默认缩放的最大 最小值 改为从接口获取
This commit is contained in:
@@ -124,8 +124,8 @@ export default {
|
|||||||
this.map = new maplibregl.Map({
|
this.map = new maplibregl.Map({
|
||||||
container: mapId,
|
container: mapId,
|
||||||
style: mapStyle,
|
style: mapStyle,
|
||||||
maxZoom: 7,
|
maxZoom: mapConfig.maxZoom || 7,
|
||||||
minZoom: 1,
|
minZoom: mapConfig.minZoom || 7,
|
||||||
renderWorldCopies: false,
|
renderWorldCopies: false,
|
||||||
maxBounds: [[-179, -85], [179, 85]],
|
maxBounds: [[-179, -85], [179, 85]],
|
||||||
hash: false,
|
hash: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user