API changes
- Make
L.Handler.enable
/disable
returnthis
(by @yohanboniface) #4708 - Icon
size
option can now be initialised with a number (by @rheh) #4608 - Add
classname
option toL.GridLayer
(by @jayvarner) #4553 - Consistent returns for
Map.addLayer
(by @nathancahill) #4504 - Create points from objects with
x
andy
properties (by @nathancahill) #4465 - Add
updateWhenZooming
option toL.GridLayer
(by @IvanSanchez) #4462
Improvements
- Refactoring of events (by @fab1an and @perliedman) #4697
- Do not alter
popup.options.offset
when computing popup offset (fix #4645) (by @yohanboniface) #4662 - Use different
L.Bounds
for "marking as prunable" and loading tiles (by @IvanSanchez) #4650 - Added
L.Tooltip
class to display small tooltips on the map (by @yohanboniface) #3952
Bug fixes
- Fixed
GridLayer
's outer edge snapping to vertical center of map (fix #4702) (by @yohanboniface) #4704 - Fixed scrollwheel zoom too fast in MS Edge (by @IvanSanchez) #4694
- Use
pointer-events: visiblePainted
as fallback for IE <11 (by @perliedman) #4690 - Avoid double borders on
abbr
in website (by @brunob) #4663 - Prevent firing map click when layer has popup (by @jwoyame) #4603
- Disable pointer events on popup tip (by @jwoyame) #4599
- Prevent
L.DomUtil.create()
from automatically setting a CSS class name (by @MuellerMatthew) #4563 - Fix off-by-one bug in
Control.Layers._getLayer
(by @ValentinH) #4561 - Fix scrollwheel events zomming two levelz in Chrome by scaling down
getWheelDelta()
(by @IvanSanchez) #4538 - Prevent event listeners from being called when all listeners are removed (by @perliedman) #4555
- Don't prevent browser's touch scroll and/or zoom unless handlers are enabled (by @perliedman) #4552
- Fixed
getBoundsZoom
with small size and padding (by @dianjin) #4532 - Fixed
L.Control.Layers
in IE8 (by @jieter) #4509 - Fixed
TileLayer
's retina logic whenzoomReverse
is enabled. (by @perliedman) #4503 - Fixed
setMaxBounds
not resettingmaxBounds
when passingnull
argument (by @yohanboniface) #4494 - Fixed canvas not filtering click event after drag (by @yohanboniface) #4493
- Fixed
L.Control.removeLayer()
raising an error when trying to remove a layer not yet added (by @jieter) #4487 - Fixed disabling drag on click in IE11 (by @perliedman) #4479
- Fixed
L.Evented.listens()
on removed event handlers, #4474 (by @IvanSanchez) #4476 - Better handling of
markerZoomAnimation
event hooks (by @IvanSanchez) #4460