API changes
- Make
L.Control.Layers.collapse
/expand
public methods (by @yohanboniface) #4370 - Make
L.latLngBounds
factory return an empty bounds with no argument (by @yohanboniface) #4368 Map.fitBounds
now raises an error if bounds are not valid (by @theotow) #4353- Temporarily support legacy options on
L.Circle
(by @JrFolk) #4290 - Throw error on
NaN
circle radius (by @IvanSanchez) #4237 L.Class.include()
&mergeOptions()
now returnthis
(by @IvanSanchez) #4246- Consistent GeoJSON casing (by @yohanboniface) #4108
- Move
L.LatLng.equals
toL.CRS.equals
. (by @perliedman) #4074 - Make non-interactive markers not firing pointer events (by @IvanSanchez) #3937
Improvements
- Give popups an id (by @tylercubell) #4355
- Support
{-y}
in tile layer urls (by @jieter) #4337 - Support
dashArray
path option in canvas (by @gommo) #4173 - Clean up
navigator.pointerEnabled
(by @IvanSanchez) #4287 - Use array in
L.Control.Layers
internally (by @jieter) #4227 - Implement
L.Browser.edge
(by @IvanSanchez) #4143 - Optimized icons (by @vtduncan) #4124
- Cast
L.DivIcon.bgPos
option toL.Point
(by @perliedman) #4090 - Switch to wheel event where available (by @mourner) #3653
- Fractional zoom controls (by @IvanSanchez and @hyperknot) #3523
- Added click tolerance also for non-touch devices (by DavidUv) #4396
Bug fixes
- Fixed an edge case on
Map.fitBounds
(by @perliedman) #4377 - Fixed an edge case bug in
flyTo
(by @hyperknot) #4376 - Use mean earth radius for distance calculation in
L.CRS.Earth
. (by @perliedman) #4369 - Fixed zoom event fired twice (by @perliedman) #4367
- Initialize canvas dash on init. Check that canvas supports
setLineDash
. (by @perliedman) #4364 - Do not calculate inverted y coords for CRSes with infinite: true (by @jieter) #4344
- Fixed zoom handling on
Map.TouchZoom
(by @IvanSanchez) #4340 - Fixed
this._times.length
undefined inMap.Drag.js
(by @LucasMouraDeOliveira) #4324 - Fixed simulated click handling in
L.Path
(by @elkami12) #4314 - Fixed attribution text not removed when Layer is removed from map (by @dr-itz) #4293
- Fixed bug when adding/removing a layer from
L.Control.Layer
that is not on the map (by @errebenito) #4280 - Fixed
Map.attributionControl
only set onaddInitHook
(by @snkashis) #4263 - Check for
e.originalEvent
inDomUtil._filterclick
(by @IvanSanchez) #4256 - Stop drag propagation on
L.Draggable
(by @turban) #4250 - Fixed error when quickly removing a layer just added (by @hyperknot) #4244
- Fixed not resetting properly on
Map.stop
(by @IvanSanchez) #4229 - Fixed conflict between
Map.fadeAnimation
andGridLayer.opacity
(by @IvanSanchez) #4228 - Fix fractional zoom calculation (by @hyperknot) #4224
- Better cleanup of L.Control.Layers, fixes #4213 (plus unit tests) (by @IvanSanchez) #4214
- Fixed transform issue when not
L.Browser.any3d
(by @IvanSanchez) #4212 - Fixed fractional zoom controls broken when initial zoom isn't specified (by @IvanSanchez) #4209
- Fix extra tiles usage (by @IvanSanchez) #4193
- Sanity check: test
pxBounds
validity before using it (by @yohanboniface) #4191 - Disable event defaults when disabling scroll propagation (by @IvanSanchez) #4160
- Fixed precision issues in
L.Circle
radius (by @IvanSanchez) #4133 - Workarounded some touch-capable browsers firing
dblclick
instead of touch events (by @IvanSanchez) #4131 - Use all projected coords when calculating
L.Polyline
's pixel bounds. (by @perliedman) #4114 - Fixed removing all events when passing an
undefined
property (by @robertleeplummerjr) #4113 - Fixed retina URL computation (by @hyperknot) #4110
- Fire
tileunload
for all unloading of tiles (by @tcoats) #4099 - Fixed duplicated code in
L.GridLayer.retainParent()
(by @jblarsen) #4094 - Make sure to always reset
_enforcingBounds
. (by @perliedman) #4089 - Fix bug with max bounds and custom projections (by @OleLaursen) #4078
- When limiting center to bounds, ignore offsets less than a pixel. (by @perliedman) #4077
- Fixed bug for hover event between circle overlapping polygon on canvas (by @fimietta) #4072
- Fixed but where
L.Control.Layers
where callingmap._size
instead ofgetSize()
(by @Brobin) #4063 - Round new map position before animating pan (by @RLRR) #4046
- Fixed overlayed circles not responding to mouse events in canvas (by @Deftwun) #4033
- Fixed GeoJSON
resetStyle
(by @yohanboniface) #4028 - Fixed popup toggle on marker click (by @yohanboniface) #4016
- Fixed event target fallbacking to map after marker drag (fix #3971) (by @yohanboniface) #4010
- Fixed
maxZoom
not honoring 0 (by @simsibimsiwimsi) #4000 - Skip
L.GridLayer._updateLevels()
when out of min/max zoom (prevents IE8 exceptions) (by @IvanSanchez) #3999 L.DomUtil.getPosition()
should return a fallback value (for VML in IE8) (by @IvanSanchez) #3998L.Marker
: init interaction regardless of new icon or not (by @celadevra) #3978- Fix
interactive=false
not taken into account for canvas (by @yohanboniface) #3956 - Fix canvas path disappearing on animation (by @klaftertief) #3950
- Only check for moving draggable in canvas renderer when map is draggable (by @klaftertief) #3942
- Fix SVG Dragging issues in IE and Edge (by @perliedman) #4382
- Fix click not working on inputs in controls in IE 11 (by @perliedman) #4371
- Make drag and touch zoom handlers insensitive to order of event handlers (by @perliedman) #4387
Other
- Added a Code of Conduct (by @mourner) #4142
- Dual 1.0 & 0.7 docs to gh-pages (by @IvanSanchez) #4085
- 🍂doc (by @IvanSanchez) #3916
- A lot of documentation improvements (by @nathancahill) #4418, #4419, #4423, #4425 and a lot more
- Replace links to google groups with ones to GIS StackExchange (by @IvanSanchez) #3886