坐标系是4326,使用leaflet 进行开发,
bound ={
"_southWest": {
"lat": 30.274200439453125,
"lng": 119.12063598632812
},
"_northEast": {
"lat": 31.265716552734375,
"lng": 120.5859375
}
}
map.fitBounds(bound);
如此设置后,打印map.getBounds()=
{
"_southWest": {
"lat": 30.9375,
"lng": -104.0625
},
"_northEast": {
"lat": 30.9375,
"lng": 343.828125
}
}
为什么会出现这种问题?要怎么设置,才能使map定位到设置的范围?