Releases: Leaflet/Leaflet
Releases 路 Leaflet/Leaflet
v1.6.0
API changes
GeoJSON.resetStyle
- allow invocation without an argument (#6663 by joukewitteveen)- Add new
markersInheritOptions
option toL.GeoJSON
(#6866 by ghybs)
Improvements
- Use passive event listeners (#6694 by danielkorte)
- Add
oldLatLng
coordinates toL.CircleMarker
move
event (#6719 by errnesto) - Add tests (#6839, #6841 by ghybs)
- Add test case to ensure scientific notation is formatted correctly (#6877 by desean1625)
Bug fixes
- Fix performance issue with
L.Util.formatNum
(#6668 by cherniavskii) - Respect
className
option inSVGOverlay
andVideoOverlay
(#6679 by IvanSanchez) - Cancel the canvas
mousehover
throttle onmouseout
(#6749 by IvanSanchez) - Check for style being passed in
L.Path.setStyle
(#6728 by TheRealTorreySmith) - Fix
dblclick
event when both Pointer Events and Touch Events are available (#6855 by filcab) - Properly unbind animation proxy events when removing map (#6867 by ghybs)
- Fix race condition in
Marker
when icon is not present (#6794 by BenTalagan)
Docs & Web Site
v1.5.1
- Fix module export regression (#6647 by cherniavskii)
v1.5.0
API changes
- Add
keepAspectRatio
option toVideoOverlay
(#6038 by ronikar) - Add support for
keydown
andkeyup
events to map (#6421 by OrBin) - Add
shadowPane
option toMarker
(#6460 by alexfig) - Add
L.SVGOverlay
class (#6517 by Zsavajji) - Add
getIcon
method toMarker
(#6457 by OsamaShabrez)
Improvements
- Update attribution link to HTTPS (#6593 by WillSelway)
- Make
DivIcon
html
option accept Element (#6571 by oscar-sensornet) - Microoptimize
GeoJSON._setLayerStyle
(#6616 by johnd0e) - Reuse
openPopup
andopenTooltip
code (#6613 by johnd0e)
Bug fixes
- Fix
Control.Layers
radio buttons when using multiple maps (#6483 by jjimenezshaw) - Explicitly remove controls from the map on map unload (#6488 by IvanSanchez)
- Fixed a bug where mouseover on Canvas-rendered polylines acted inconsistently (#6516 by IvanSanchez)
- Prevent tiles highlighting in IE11 (#6570 by VictorVelarde)
- Fix
L.Util.formatNum
rounding precision (#6587 by inkstak) - Fix crash, when setting opacity on
Marker
without icon (#6610 by charlie67) - Make synthetic
dblclick
event relate to left mouse button (#6628 by IvanSanchez)
Docs & Web Site
- Minor spelling corrections in Docs/Tutorials (#6464 by ilyankou)
- Document
toGeoJSON
'sprecision
argument (#6375 by rkatka) - Add background color CSS declaration (#6614 by milesflo)
- Clarify
Events.off
method docs (#6619 by lancebendo) - Fix
Layer
example (#6636 by billygarrison)
Development workflow
v1.4.0
API changes
- Add new
Map.panInside
method (#6054 by daverayment)
Improvements
- Remove unused
_drawnLayers
object (#6324 by ud09) - Avoid unnecessary redrawing in
TileLayer.setUrl()
when URL does not change (#6313 by JackNeus) - Use
section
instead ofform
in layers control (#6380 by hundekoerper) - Add IE11 linked SVG elements support to
DomUtil.getClass
function (#6366 by Schleuse)
Bug fixes
- Set internal flags at beginning of map initialization (#6362 by ghybs)
- Guard against layers no longer attached to a map in
bringToFront/Back()
(#6389 by perliedman) - Fix
autoPan
option when popup content gets updated while a panning animation is running (#6365 by Schleuse) - Ignore dash arrays with non-numeric entries in canvas (#6387 by perliedman)
Docs & Web Site
- Remove additional
<tr>
(#6334 by mgred) - Fix command to run test with karma options (#6363 by ghybs)
- Add OSM logo to "Trusted by the best" section (#6360 by astv99)
- Fix typos (#6398 by HarryMaher)
- Make it clear zoomanim is not always fired on every frame (#6388 by perliedman)
- Add copyright references to code examples (#6439 by jbelien)
- Fix insecure content error (#6442 by tambry)
- Remove incorrect Earth GIF (#6326 by Vincentdecursay)
- Fix duplicated sentence in SVG section (#6448 by patrickdemers6)
v.1.3.4
Improvements
- Reset max-width and max-height styles for tiles in custom panes (#6255 by jerekshoe)
- Add unprefixed
cursor: grab
style (#6281 by Malvoz) - Remove legacy prefixed styles, add unprefixed styles (#6282 by Malvoz)
Bug fixes
- Move set/getAttribute('src') calls from
GridLayer
intoTileLayer
(#6264 by IvanSanchez) - Support comma- or space-separated strings in
Canvas
dashArray
option (#6277 by IvanSanchez) - Remove trailing commas to avoid crashes in some IE browsers (#6279 by helbling)
- Fixed capitalization of
webkitTransform
property, which broke transformations on certain Webkit browsers (#6290 by tuckergordon)
Docs & Web Site
- Document
zoomControl
map option (#6254 by IvanSanchez) - Explicitly note attribution obligation (#6261 by pietervdvn)
- Minor fixes of
ImageOverlay
docs (#6266 by jgravois) - Add Edge to the list of supported browsers (#6270 by matkoniecz)
- Remove references to Leaflet UserVoice page (#6291 by zstadler)
- Reword docstrings for draggable markers (#6296 by IvanSanchez)
v1.3.3
v.1.3.2
Improvements
- Add
use-credentials
CORS option toImageOverlay
andTileLayer
(#6016 by caleblogan) + unit tests (#6022 and #6027 by ghybs) - Clean up references to global
L
in source code (#6047 and #6048 by ghybs) - Allow reset of
Canvas
dashArray
option + support array type (#6200 by McBen)
Bug fixes
- Respect the
preferCanvas
option in all panes (#6019 by mjumbewu) - Do not fire
tileload
event if tile has emptysrc
(#6025 by cherniavskii) - Fix race condition when removing canvas before it has rendered (#6033 by louMoxy)
- Fix memory leak in canvas renderer (#6117 by aj8k)
- Fix dragging for CSS scaled map (#6055 by ghybs)
- Handle
Polygon
s with empty array ofLatLng
s (#6119 by BakuCity) - Fix view bounds calculation in geolocation event handler (#6140 by wladich)
- Fix error removing map and resizing window at the same time (#6160 by danzel)
- Stop pan key event when pan animation is in progress (#6231 by cherniavskii)
Docs & Web Site
- Use more explicit tiles in
Map panes
example (#6018 by ghybs) - Document parameter of
closestLayerPoint
method (#6060 by mattdsteele) - Update year ranges (#6076 by BakuCity)
- Use https everywhere for OSM links (#6082 by rzoller)
- Fix typo in
VideoOverlay.js
example docs (#6090 by zhuang-hao-ming) - Fix typo in
LatLng
docstring (#6138 by jieter) - Use https everywhere and get rid of mixed content warnings (#6151 by theel0ja)
- More accurate
Browser.retina
explanation (#6203 by JLuc) - Use link to official RFC 7946 GeoJSON spec (#6211 by ghybs)
ES6 / Rollup
- Add ES module build (#6021 by Rich-Harris)
Development workflow
- Move external dependencies to
node_modules
(#6028 by cherniavskii) - Remove
jake
dependency and use NPM scripts instead (#5828 by cherniavskii) - Update
ssri
dependency to5.2.2
(#6086 by cherniavskii) - Set div width for
getBoundsZoom
parameterinside
(#6192 by ghybs) - Fix unit tests for graphical browsers (#6199 and #6202 by ghybs)
- Run tests in Firefox graphical browser as part of CI (#5831 by cherniavskii)
v1.3.1
v1.3.0
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)
v1.2.0
Fixes non-extendable objects regression of 1.1.0 (#5658 by mourner)
For a detailed changes, see the full changelog