edit this page - page history - about editing

Leaflet

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 this bug 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
edit this page - what links to here? - page history - top
Last edited by jevon jevon 38 months ago