|
@@ -144,10 +144,10 @@ export default {
|
|
|
}
|
|
|
return yx(y, x)
|
|
|
}
|
|
|
- var bounds = [xy(-600, -600), xy(300, 300)]
|
|
|
+ var bounds = [xy(-800, -600), xy(500, 300)]
|
|
|
this.map = L.map('vmap', {
|
|
|
crs: L.CRS.Simple, // 一个简单的CRS,可将经度和纬度直接映射到x其中y。可用于平面地图(例如游戏地图)
|
|
|
- minZoom: 0,
|
|
|
+ minZoom: -0.4,
|
|
|
maxZoom: 1,
|
|
|
zoom: 1,
|
|
|
maxBounds: bounds, // 地图拖动到边界后自动弹回
|
|
@@ -172,7 +172,7 @@ export default {
|
|
|
}
|
|
|
return yx(y, x)
|
|
|
}
|
|
|
- var bounds = [xy(-600, -600), xy(300, 300)]
|
|
|
+ var bounds = [xy(-800, -600), xy(500, 300)]
|
|
|
if (this.imageOverlay) {
|
|
|
this.imageOverlay.setUrl(this.viewData.mapRasterLayer)
|
|
|
} else {
|
|
@@ -180,7 +180,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.map.fitBounds(bounds)
|
|
|
- this.map.scrollWheelZoom.disable()
|
|
|
+ // this.map.scrollWheelZoom.disable()
|
|
|
this.getMapLayers()
|
|
|
},
|
|
|
|