bmcbride / leaflet-users-map

Map showing users of the Leaflet mapping library
http://users.leafletjs.com
70 stars 22 forks source link

Set the world view initially instead of a delayed zoom in #1

Open mourner opened 12 years ago

mourner commented 12 years ago

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.

bmcbride commented 12 years ago

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.