smart-facility / petajakarta-web

Web files for PetaJakarta.org
http://petajakarta.org
Other
8 stars 6 forks source link

Zoom to polygon doesn't always increase zoom level #50

Closed tomasholderness closed 8 years ago

rhysforyou commented 9 years ago

The zoomToFeature function just invokes L.Map.fitBounds, which "sets a map view that contains the given geographical bounds with the maximum zoom level possible"[1]. So based on their API docs, that wouldn't necessarily involve increasing zoom level if the region we're trying to show is large enough.

tomasholderness commented 8 years ago

This functionality has been removed in 2.0.x