Leaflet v1.3.0 Release Notes
Release Date: 2018-01-15 // about 6 years ago-
API changes
- โ Add
tolerance
option toL.Renderer
instead of hardcoded tolerance for touch devices (#5922 by Muscot).
๐ Improvements
- ๐ Use more stable form of Haversine formula (#5935 by jussimattas)
- โ Add
autoPan
option toL.Marker
(#5651 by alenaksu) - Cancel http requests for outdated tiles (#5615 by jbccollins)
- โ Add
closeOnEscapeKey
option toL.Popup
(#5730 by Mickyfen17) - โ Add
tileerror
tests toL.GridLayer
spec (#5805 by msiadak) - ๐ Use
eachLayer
method for iterations over layers inL.LayerGroup
(#5809 by cherniavskii) - ๐ Change
Util.formatNum
default to 6 decimals (#5492 by fminuti) - Fire
zoomlevelschange
event when callingsetMinZoom
&setMaxZoom
(#5230 by mynameisstephen) - ๐ Use zoom parameter if passed to
L.TileLayer
'sgetTileUrl
method (#5822 by broncha) - Round circle radius in renderer instead of layer (#5859 by perliedman)
- ๐ Make
L.LayerGroup
accept options (#5792 by iH8) - Round pan offset towards zero (#5858 by perliedman)
- ๐ Improve heuristic for what event targets are considered markers (#5885 by perliedman)
- โ Add
typeof
check tocheckDeprecatedMixinEvents
(#5901 by murb) - โก๏ธ Optimize images (#5936 by grischard)
- โ Add
addTo
static function toL.Handler
class (#5930 by cherniavskii) L.ImageOverlay
acceptsImageElement
(#5948 by ronikar)
๐ Bug fixes
- ๐ Fix adding CSS classes in
L.VideoOverlay
, which caused map crash in IE8 (#5731 by Dzwiedzminator and #5785 by cherniavskii) - No inertia if drag is stopped before ending the drag (#5690 by perliedman)
- โ Remove tiles from the
_tiles
cache when they're aborted (#5634 by oliverheilig) - ๐ Use same condition for adding as well as removing double tap listener (#5598 by perliedman)
- Correctly wrap tile coordinate bounds (#5715 by perliedman)
- ๐ Fix
L.TileLayer
infinite error loop (#5783 by cherniavskii) - ๐ Fix map not rendering when images have max-height (#5778 by idanen)
- โ Add defensive check for
this._map
inL.Marker
'supdate
method (#5736 by dnepromell) - ๐ Fix zoom when map container is scaled (#5794 by cherniavskii)
- โก๏ธ Update DomPointer.js to revert typo (#5817 by daverayment)
- ๐ Fix
L.ImageOverlay
className
option (#5830 by cherniavskii) - ๐ Fix
L.TileLayer.WMS
when using Polar stereographic (#5618 by scaddenp) - Stop animation before removing map (#5876 by dnepromell and #5918 by aaronplanell)
- Stop locate before removing map (#5893 by ghybs)
- Reset
GridLayer
's_tileZoom
toundefined
instead ofnull
(#5888 by iH8) - ๐ Fix
L.Map
'smap.flyTo
method to respectnoMoveStart
option (#5923 by iPrytz) - ๐ Fix map pan when
touchZoom
is disabled (#5952 by cherniavskii) - ๐ Fix
L.SVG
to reset size on remove from map (#5966 by ghybs) - ๐ Fix
L.Marker
to setalt
attribute for img-based Icons only (#5979 by msiadak)
๐ Docs & Web Site
- โ Add documentation for
PolyLine.closestLayerPoint
(#5701 by perliedman) - ๐ Replace urls for samples in wms documentation (#5712 by jjimenezshaw)
- โ Add
DomEvent.stop
event type to docs (#5733 by theashyster) - โก๏ธ Update links to GeoJSON spec in GeoJSON examples (#5725 by astridx)
- ๐ Improve docs for
L.LatLngBounds
pad
method (#5748 by CalvinWilliams1012) - ๐ Improve Zoom-levels documentation to reflect function properly (#5769 by CalvinWilliams1012)
- ๐ Fix map's height and width in examples to make attributions visible on mobile (#5772 by CalvinWilliams1012 and #5819 by cherniavskii)
- ๐ Fix
L.FeatureGroup
bringToBack
method docs (#5788 by fpopa) - ๐ Fix
L.LatLng
distanceTo
method description (#5791 by loisgh) - ๐ Fix docs redirects to latest version reference (#5824 by cherniavskii)
- โ Add CDN alternatives (#5837 by ghybs)
- โก๏ธ Update docs for
L.DomEvent.off()
(#5855 by 77ganesh and #5976 by kring) - ๐ Move
L.SVG
factory docs to appropriate place (#5864 by cherniavskii) - ๐ New Leaflet playgrounds on Plunker, Codepen and JSFiddle (#5868 by iH8)
- Clarify that any option keys can be used (#5877 by perliedman)
- โ Add notes about some classes not inheriting Class (#5878 by perliedman)
- Clean up and document event propagation properties (#5880 by perliedman)
- โก๏ธ Update building instructions (#5911 by shadeland)
- Document
mouseup
event for interactiveL.Layer
(#5941 by germansokolov13) - โก๏ธ Document
L.Icon
'stooltipAnchor
option, updatetooltipAnchor
andpopupAnchor
default values docs (#5989 by cherniavskii)
ES6 / Rollup
- ๐ Tweak
legacy
option in rollup config - now Leaflet works in IE again (#5929 by IvanSanchez) - โ Remove warning alert in watch bundle (#5714 by perliedman)
- ๐ New rollup config signature (#5812 by iH8)
- โ Add