From 7b7b56622f1d6346e3fcede196927c64a0311a62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20S=C3=A1nchez=20Ortega?= Date: Wed, 22 Apr 2015 23:10:14 +0200 Subject: [PATCH] Add flyTo() and flyToBounds() to the API reference --- reference.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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