diff --git a/reference.html b/reference.html index dc626760..16d23093 100644 --- a/reference.html +++ b/reference.html @@ -739,6 +739,23 @@ var map = L.map('map', { this Destroys the map and clears all related event listeners. + + flyTo( + <LatLng> latlng, + <Number> zoom?, + <zoom/pan options> options? ) + + this + Sets the view of the map (geographical center and zoom) performing a smooth pan-zoom animation. + + + flyToBounds( + <LatLngBounds> bounds, + <fitBounds options> options? ) + + this + Sets the view of the map with a smooth animation like flyTo, but takes a bounds parameter like fitBounds. +

Methods for Getting Map State