* Fix(TileLayerWMS): get rid of L.TileLayer global call
and rely on imported TileLayer instead.
* Fix(Canvas): get rid of L.stamp global call
and rely on imported Util.stamp instead.
Fixes#6030: Cancel animation frame request before removing the map.
This fixes the bug where the the delayed call to _redraw is trying to get the drawing context which has already been destroyed.
* Added support for crossorigin using a String besides a Boolean (typically set `crossOrigin: 'use-credentials' / 'anonymous' / '' / true / false (default))
* Changed boolean to result in empty string and updated docs
so that when the SVG Renderer is re-used and re-added on map, in `_update` method, the check on `_svgSize` triggers and re-assigns `width` and `height` attributes on the `_container`. Otherwise, the latter no longer has width and height, therefore is invisible, until the viewport size is changed.
* Use more stable form of Haversine formula.
The new form does not give a non-zero distance from a point to itself.
* Pre-compute sines which are used twice.
* added check for noMoveStart option in map.flyTo
* added implicit false parameter to _moveStart when noMoveStart option is not set
* Shorten option check
* Fix typo :(
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.
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.