Leaflet 1.0.2 is a small release with a dozen bugfixes and a couple small improvements. Changes since v1.0.1:
Bug fixes
- Fix CSS for marker shadows when
max-width
is already set (by @brunob, #5046). - Fix canvas redraw when style updates fill and/or weight (by @perliedman, #5034).
- Prevent canvas from firing multiple
mouseover
events for same layer (by @perliedman, #5033). - Fixed a race condition when removing and adding
L.Canvas
vectors during a zoom animation (by @ghybs) #5011. - Fix zoom animation of ImageOverlay when CRS's Y axis is flipped (by @perliedman), #4993.
- Fix encoding/decoding of GeoJSON
FeatureCollection
s (by @IvanSanchez), #5045. - Fix
minZoom
/maxZoom
late inizialization (by @IvanSanchez), #4916. - Fix styling of custom SVG markers by making stricter CSS selectors (by @jwoyame) #4597.
- Fix order of
mouseover
/mouseout
events on overlappingL.Canvas
layers (by @perliedman), #5090. - Fix drag behaviour when a draggable marker is removed in mid-drag (by @IvanSanchez, #5063.
- Fix
L.Control.Layers.collapse()
on initially uncollapsed layer controls (by @perliedman), #5090. - Fix blurriness of
L.Tooltip
by rounding up pixel coordinates (by @ashmigelski), #5089. - Fix click events on overlapping geometries when using
L.Canvas
(by @perliedman), #5100.
API changes
- Add a
sortLayers
option toL.Control.Layers
(by @IvanSanchez, #4711. - Implement
bringToFront
andbringToBack
when usingL.Canvas
, plus preventing other canvas glitches (by @perliedman), #5115. - Add
minNativeZoom
option toL.TileLayer
s. (by @bb-juliogarcia), #5088.
Improvements
- Improve performance when adding lots of
L.Path
s by refactoring away event logic (by @IvanSanchez) #5054)]. - Several minor documentation improvements by @Jmuccigr, @serdarkacka, @erickzhao, @IvanSanchez, @perliedman, @joukewitteveen.
- Code reorganization: Extensions for
L.Marker
andL.Map
no longer have a separate file (by @mourner). - Removed a duplicated unit test (@yohanboniface).
- Accesibility improvements (ARIA/screenreader related) on map tiles (by @patrickarlt) #5092.