view page source - page history - about editing

Revision History: Leaflet

This is revision 453 of the page Leaflet, as it appeared on Wed, 09 Apr 2014 19:59:40 -0700.
Leaflet is an abstraction layer for Google Maps and other maps.

L.control.locate is not a function

Make sure that you have the L.Control.Locate.js included.

Calling fitBounds() on a layer sometimes breaks/freezes the map in Leaflet 0.7.2

Looks like it will be fixed in 0.7.3, a workaround is to invalidate the size of the map before fitting the bounds with map.invalidateSize() - I guess this bug occurs if the map has not been rendered by the browser yet.
Categories: Javascript

view page source - what links to here? - page history - top
Last edited by jevon jevon 54 months ago