I am using leaflet js to show a world map using cloudmade tiles. When I setMaxBounds
to the map the bounds work great except to north. That is, however, not my biggest concern. My concern is, as I use maxBounds
I can not zoom out to see whole world in any screen size.
The bound I used reaches all the way from north east corner of canada to south west of australia. I can pan to reach the bounds but cant zoom out to see whole map. I set minZoom
to 0. Without maxBound
, it is zoomed out too far you can see the world repeat thrice on big screen.
map = L.map('canvas',{zoomControl: false}).setView([38.82259, -2.8125], 0);
map.setMaxBounds([[84.67351256610522, -174.0234375], [-58.995311187950925, 223.2421875]]);
Any help is appriciated. Anil