Leaflet v1.2.0 Release Notes
Release Date: 2017-10-25 // over 6 years ago-
API Changes
- 👉 Make
L.LineUtil._flat
public asL.LineUtil.isFlat
(#5667 by yohanboniface) L.ImageOverlay
'ssetBounds
method accepts an array of points, not only aL.LatLngBounds
instance (#5687 by ronikar
👌 Improvements
VideoOverlay
acceptsVideoElement
(#5661 by eavidan-0)- 📚 Documentation improvements by ghybs, thachhoang, colbin8r, Timmmm, cyrilf and JonDum
- Filter published files on npm (#5626 by TrySound), e7o-de
- Throw an error if trying to use
addLayer
with something that is not aLayer
(#5689 by perliedman) - Ensure copyright banner is kept in the minified
leaflet.js
(#5682 by jgravois)
🐛 Bug fixes
- 🛠 Fix non-extendable objects regression of 1.1.0 (#5658 by mourner)
Control.Layers
properly handles adding the same layer multiple times, as well as cleanup (#5672, #5684 and #5673 by jjimenezshaw)- 👉 Make
L.Draggable._dragging
public again (#5659 by yohanboniface) DomEvent.off
returnsthis
(#5601 by jelhan)- Don't use functions from the global
L
internally (#5596 by atd-schubert) - Return
this
instead ofaddOne
inDomEvent.disableScrollPropagation
(#5595 by Eschon)
- 👉 Make