leaflet-users-map icon indicating copy to clipboard operation
leaflet-users-map copied to clipboard

Set the world view initially instead of a delayed zoom in

Open mourner opened this issue 12 years ago • 1 comments

Hi! As there are markers all over the world now, you can set the map view to the whole world initially (e.g. with map.fitWorld()) instead of zooming after the page gets all the markers.

mourner avatar Mar 29 '12 11:03 mourner

True, but I did want to keep the code generic enough for use on other projects, which may not cover a global extent. The firstLoad check is a bit of a hack, but it gets the job done.

bmcbride avatar Mar 29 '12 13:03 bmcbride