cf518ff1a5
so that Geolocation handlers (namely _handleGeolocationResponse and _handleGeolocationError) do not try to access DOM elements which have been cleared by map.remove(). Of course developer should currently call map.stopLocate() manually before map.remove(), but it looks like he/she may forget it. Check for _locationWatchId is not perfect (watch may have been already stopped), but calling stopLocate again does not harm. It prevents trying to access the Geolocation API if locate had never been called, even though doing so should not harm either. |
||
---|---|---|
build | ||
debug | ||
dist | ||
docs | ||
spec | ||
src | ||
.gitignore | ||
.travis.yml | ||
bower.json | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
FAQ.md | ||
ISSUE_TEMPLATE.md | ||
Jakefile.js | ||
LICENSE | ||
package.json | ||
PLUGIN-GUIDE.md | ||
README.md | ||
RELEASE.md |
Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps. Weighing just about 37 KB of gzipped JS code, it has all the mapping features most developers ever need.
Leaflet is designed with simplicity, performance and usability in mind. It works efficiently across all major desktop and mobile platforms out of the box, taking advantage of HTML5 and CSS3 on modern browsers while being accessible on older ones too. It can be extended with a huge amount of plugins, has a beautiful, easy to use and well-documented API and a simple, readable source code that is a joy to contribute to.
For more info, docs and tutorials, check out the official website.
For Leaflet downloads (including the built master version), check out the download page.
We're happy to meet new contributors. If you want to get involved with Leaflet development, check out the contribution guide. Let's make the best mapping library that will ever exist, and push the limits of what's possible with online maps!