Beta 2 fixes over 50 bugs that were reported by users trying out beta 1. The vast majority of changes are small fixes to problems that are triggered in very specific situations or conditions, a few API consolidation changes, and a few browser workarounds.
API changes
L.circle
now acceptsradius
as an option (likeL.circleMarker
) rather than a second argument (by @IvanSanchez)
Improvements
- Implemented canvas optimizations on mousehover interactions (by @philippelatulippe) #3076
- Improved drag behaviour by preventing a
preclick
event during drag (by @yohanboniface) #3632 - Implemented
L.ImageOverlay.setBounds()
and fixed image overlay initialization (by @fminuti) #3680 - Implemented draggable items to fire
mousedown
events (by @yohanboniface) #3682 - Changed detection of browsers capable of
msPointer
events (by @IvanSanchez) #3684 - Implemented latitude truncation for spherical mercator projection (by @perliedman) #3700
- Armored against browsers not implementing
Geolocation.clearWatch()
#3707 - Implemented generation of sourcemaps when building and minifying source files (by @IvanSanchez) #3723
- Added
bringToFront
andbringToBack
to popups (by @danzel). #3908 #3307 - Multiply offset by 3 on keyboard pan when shift key is pressed (by @yohanboniface) #3921
Bug fixes
- Fixed event propagation on double finger tap (by @IvanSanchez) #3532
- Fixed style changes on re-added layers (by @wpf500) #3547
- Fixed
preventOutline
exceptions #3625 - Fixed a box zoom regression bug #3633
- Fixed
contextmenu
behaviour when there are no event listeners (by @yohanboniface) #3638 - Fixed map controls not showing on top of map layers (by @patrickarlt) #3644
- Fixed display of marker images with
max-width
(by @davidjb) #3647 - Fixed
mouseout
andmouseover
event bubbling (by @yohanboniface) #3648 #3797 #3708 - Fixed a layer control bug when removing layers (by @davidlukerice) #3651
- Fixed pan and zoom animations interacting with each other #3355 #3655
- Fixed a regression bug in canvas renderer when removing layers #3661
- Remove a workaround for legacy Android 2 browsers #2282
- Fixed VML vector rendering in IE8 when removing and re-adding layers (by @fminuti) #2809
- Fixed
flyTo
animations when the map center doesn't change (by @fminuti) #3663 - Fixed fade animations for semitransparent tile layers (by @w8r) #3671
- Fixed behaviour of the
baselayerchange
event (by @yohanboniface) #3677 - Fixed marker icon handling during a marker drag (by @IvanSanchez) #3687
- Fixed a IE 11 map container visibility bug (by @fminuti) #2788
- Prevented dragging interactions while a map zoom animation is running (by @IvanSanchez) #3692
- Implement disabling layers in the layer control when they are unavailable at the current zoom level (by @IvanSanchez) #252
- Refactored
L.Util.requestAnimFrame
definition (by @fminuti) #3703 - Fixed an edge case of
L.Circle.getBounds()
(by @knabar) #3776 - Fixed
Rectangle.setBounds()
return value (by @IvanSanchez) e698f64 - Fixed event firing order when opening a popup (by @yohanboniface) #3745
- Fixed tile layer loading when dragging then immediately pinch-zooming the map (by @IvanSanchez) #3814
- Work around browser limitations when panning the map too far away (by @yohanboniface and @IvanSanchez) #3608
- Fixed popup text selection and touch events for IE 10 (by @danzel) #3804
- Fixed tile layer ordering when
maxZoom
is set (by @patrickarlt) #3721 - Fixed scale behaviour on non-standard CRSs (by @javimolla, special thanks to Your First PR) #2990
- Fixed rendering of off-screen vector layers (by @yohanboniface) #3836
- Fixed rendering of intersecting vector layers (by @yohanboniface) #3583
- Enforced stricter code linting
- Fixed disabled drag handlers not being able to be re-enabled (by @yohanboniface) #3825
- Fixed panning outside the map bounds (by @yohanboniface) #3878
- Worked around IE 11 not focusing the map using keyboard (by @IvanSanchez) #3772
- Fixed vector layer positioning during a zoom animation in low zoom (by @IvanSanchez) #3769
- Implemented
noWrap
option inL.GridLayer
(by @IvanSanchez) #3691 - Fixed popups panning the map while running another pan animation (by @yohanboniface) #3744
- Fixed uncorrect length of scale control due to CSS styles (by @yohanboniface) #3668
- Fixed detection of default image path for icons (by @ilfa) #3770
- Various Canvas events fixes (by @yohanboniface) #3917
- Fix touch scroll in layers control (by @yohanboniface) #2882
- Fix duration not passed through from setView to panBy (by @yohanboniface) #3300