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.
* 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
* 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