Leaflet v1.3.0 Release Notes

Release Date: 2018-01-15 // about 6 years ago
  • API changes

    • โž• Add tolerance option to L.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 to L.Marker (#5651 by alenaksu)
    • Cancel http requests for outdated tiles (#5615 by jbccollins)
    • โž• Add closeOnEscapeKey option to L.Popup (#5730 by Mickyfen17)
    • โž• Add tileerror tests to L.GridLayer spec (#5805 by msiadak)
    • ๐Ÿ‘‰ Use eachLayer method for iterations over layers in L.LayerGroup (#5809 by cherniavskii)
    • ๐Ÿ”„ Change Util.formatNum default to 6 decimals (#5492 by fminuti)
    • Fire zoomlevelschange event when calling setMinZoom & setMaxZoom (#5230 by mynameisstephen)
    • ๐Ÿ‘‰ Use zoom parameter if passed to L.TileLayer's getTileUrl 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 to checkDeprecatedMixinEvents (#5901 by murb)
    • โšก๏ธ Optimize images (#5936 by grischard)
    • โž• Add addTo static function to L.Handler class (#5930 by cherniavskii)
    • L.ImageOverlay accepts ImageElement (#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 in L.Marker's update 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 to undefined instead of null (#5888 by iH8)
    • ๐Ÿ›  Fix L.Map's map.flyTo method to respect noMoveStart 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 set alt attribute for img-based Icons only (#5979 by msiadak)

    ๐Ÿ“„ Docs & Web Site

    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)