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.
* Add sourceTarget and propagatedFrom to events
Also documents events' target, sourceTarget, propagatedFrom
and layer properties.
Fixes#4510.
* Use propagatedFrom, which is equivalent of the original code
* propagetedFrom -> propagatedFrom
* Add new method to get NwSe.
Part of fix for https://github.com/Leaflet/Leaflet/issues/5617 for polar WMS systems. Added to bypass using an unsafe bounds object.
* Fix WMS getTileUrl for polar coordinates.
Part of fix for https://github.com/Leaflet/Leaflet/issues/5617 to fetch proper bbox coordinate on polar stereographic projections.
* Update TileLayer.WMS.js
* Update TileLayer.WMS.js
* Update GridLayer.js
* Update GridLayer.js
* Update TileLayer.WMS.js
* Updates to fix syntax/ style issues
Cut/paste error and buch of style stuff.
* Fix style errors
* More style issues
* Yet more style fixes
* More indentation complaints fixed
* Some more code style cleanup
* Even more code style / indentation
* Use bounds
* Options for LayerGroup
Add options parameter to L.Layergroup.initialize and set options.
* Options for LayerGroup factory
Added options parameter to LayerGroup factory method and updated docs
* Docs(MapPanes): explicitly list layer types in overlayPane
"overlayPane" is the default pane for Layers (https://github.com/Leaflet/Leaflet/blob/v1.2.0/src/layer/Layer.js#L36), but it is overridden for many sub-classes (Marker, DivOverlay, GridLayer).
It would be easier to understand where things go if we explicitly list them in Map Panes section as well. It is almost the case, except for Image Overlay and Video Overlay.
* Docs(MapPanes): convert tooltip class name into code and hyperlink
for consistency with other class names.
* Docs(download): mention other CDN
so that developers know their possible alternatives and can decide by themselves which option they want to use for their project.
None of the 3 listed options require any work from Leaflet side (as of today) for new releases, they directly pull updated from npm registry.
cdnjs uses a configuration file in their repo to know which files to fetch from npm registry:
https://github.com/cdnjs/cdnjs/blob/master/ajax/libs/leaflet/package.json
In case the `dist/` folder changes, this configuration file requires manual modification (the community may directly send a PR to do so).
* Docs(download): add disclaimer about external CDN services
in order to try avoiding questions and/or complaints in case of CDN unavailability or any other issue.
This simply removes the word "absolute" from the documentation of Icon.Default.imagePath. This path can be relative or absolute.
e.g. L.Icon.Default.imagePath = 'style/images/'; works just fine for me.
* Style(CHANGELOG): remove empty bullet point
* Docs(CHANGELOG): replace "leaflet" by "Leaflet" in GitHub URL's
"https://github.com/leaflet/leaflet" (without capitalized first letter) works as URL, but is not recognized by GitHub MarkDown parser (which simplifies URL's by simple "#XXX" style when referring to an issue or PR in the same repository, or "group/repo#XXX" in another repository).
Proper case is "Leaflet/Leaflet" (organization and project have capitalized first letter).
* use redirected.html instead of jekyll-redirect-from
* modify redirected.html to preserve url hases
* fix links in zoom-levels example
- use relative links instead of absolute
- remove hardcoded version in lins and refer to latest version docs instead
* fix hash in choropleth example
* fix links in geojson example
- use relative links instead of absolute
* fix absolute link in quick-start example
* fix link in video-overlay example
* fix link in map-panes example
* fix link in wms example
* fix link in geojson example
* fix relative reference links
* Fire 'zoomlevelschange' when calling setMinZoom & setMaxZoom.
* rename variables
* make sure 'zoomlevelschange' won't be fired unnecessarily
* fix enabling zoom control after changing zoom levels
* always fire `zoomlevelschange` if minZoom/maxZoom changed
* remove trailing spaces
* fix map height in extending example
* add html and body styles to tutorial_frame
* move js styles to css
* remove unnecessary styles from mobile/example.md
* Util.formatNum default to 6
Changed Util.formaNum default to 6 decimails.
Solved 0 decimals bug.
Added tests.
Can be useful for PR #5444
* Changed documentation
Changed documentation to 6 instead of 5
* [LayerGroup] use eachLayer method instead of for...in
* [LayerGroup] use eachLayer method in getLayers method
* [LayerGroup] use eachLayer method in onAdd & onRemove methods
* [LayerGroup] invoke method fix
- use `eachLayer` method instead of for...in
- add unit test for `invoke` method
* revert invoke method change