Leaflet v1.1.0 Release Notes
Release Date: 2017-06-27 // almost 7 years ago-
๐ 1.1.0 is a feature release. Changes since 1.0.3 are:
API changes
- โ Add deprecation notice for
L.Mixin.Events
, fixes #5358 (#5365) (by perliedman) - Turn
nonBubblingEvents
into a documented boolean option (#4883 by IvanSanchez) - โ Add
L.transformation
factory, allow creation from array (#5282 by anetz89) - 0๏ธโฃ
toGeoJSON
methods now default to a precision of six decimals (as recommended in the GeoJSON spec), precision is settable through a method parameter (#5544 by mattgrande)
๐ Docs & Web Site
- โ
reference.html
now always points to latest stable docs (#5490 by IvanSanchez, #5493 by alyhegazy) - Subresource integrity information and scripts (#5468 by IvanSanchez)
- ๐ New tutorial on zooming (by IvanSanchez, #5007)
- ๐ Minor documentation improvements by perliedman, veltman, FDMS, ghybs, RichardLitt, gatsbimantico, daturkel, jgravois, geografa, BjoernSchilberg, IvanSanchez, bozdoz, zemadz, danzel, jieter, massic80, jjimenezshaw, hnrchrdl and RayBB
ES6 / Rollup
- ES6 modules & Rollup (#4989) (by mourner and IvanSanchez)
- โ Additional fixes, testing and cleanup of ES6 code by thachhoang, danzel, jkuebart, simon04, perliedman, luiscamachopt and Trufi (#5373, #5417, #5351, #5330, #5329, #5489, #5504, #5456, #5463)
๐ Improvements
- โ Add new class
L.VideoOverlay
(#4988 by IvanSanchez) - โ Added z-index support to ImageOverlay (#5418 by Saulzi)
- โ Added error event to
ImageOverlay
layer and added tests for the new (#5416 by Saulzi) - โ Add
className
option forImageOverlay
(#5555 by perliedman)
๐ Bug fixes
- ๐ Handle edge case of empty bounds on
_getBoundsCenterZoom
(#5157 by IvanSanchez) - โ Add new methods to
L.Bounds
for 2 missing corners, fixes #5475 (#5488 by ghybs) - ๐ Handle
Polyline
s with empty array ofLatLng
s, #5497 (#5498, by perliedman) - Take
devicePixelRatio
into account for scrollwheel zoom in win10+chrome (#5480) (by IvanSanchez) - โ Add hook points to allow for a proper NoGap plugin (#5476) (by IvanSanchez)
- Sanity check to prevent loading tiles when bounds are
Infinity
(#5478, #5479 by IvanSanchez) - ๐ Fix box zoom race condition (#5452 by ppaskaris)
- โก๏ธ On update set current tiles active to avoid pruning (#5381) (#5431 by oliverheilig)
- ๐ Make
L.Mixin.Events
a simple object instead of a prototype so it doesn't have a 'constructor' property, fixes #5451 (#5453 by luiscamachopt) - Canvas: call
ctx.setLineDash
in_fillStroke
#5182 (#5454 by TeXitoi) - ๐ Only rearrange DOM in
toFront
/toBack
if needed, fixes #4050 (#5465 by perliedman) - Push back keyboard navigation order of
L.Popup
's close button (#5461 by Mirodil) - โ Remove spurious check in
DomUtil.preventOutline
(#5435 by qjas) - Error handler in
ImageOverlay
for 404 links (#5307) by APwhitehat) - Ensure renderer's container is initialized when a path is added to map (#5404 by IvanSanchez)
- ๐ Layers Control only add layer events to layers when we are on the map. Fixes #5421 (#5422 by danzel)
- ๐ Layers Control can now become scrollable even if
collapsed: false
, fixes #5328 (#5348 by ghybs) - ๐ Stop map on drag start instead of pointer down, fixes #5350 (#5378 by perliedman)
- ๐ fix invalid GeoJSON produced by nested
LayerGroups
(#5359 by Resonance1584) - โก๏ธ Update toolbar inner border radius (#5361 by newmanw)
- Export
lastId
inUtil
(#5349 by DenisCarriere) - โ Do not stop keypress on escape if no popup is open, plus unit tests (#5331 (by IvanSanchez)
- ๐ Docs: remove
iframe
borders on examples (#5327) (by tariqksoliman) - Pull
min
/maxNativeZoom
fromTileLayer
intoGridLayer
, as per #5316. (#5319 by jkuebart) - ๐ Disable click propagation on zoom control buttons, fixes #5308 (#5318 by perliedman)
- โ Add CSS for
-webkit-tap-highlight-color
, fixes #5302 (#5303 by IvanSanchez) - โ Removed type attribute in HTML5 files (#5309 by uzerus)
- โ Add margin to
LatLngBounds.equals
method (#5071 by miguelcobain) - โ Add
L.Draggable
options and fix docstring (#5301 by IvanSanchez) - ๐ Fix max/min calculation for
getBoundsZoom
, fixes #5136 (#5137 by IvanSanchez) - ๐ Scrubbing of detached DOM elements, prevents memory leaks; fixes #5263 (#5265 by IvanSanchez)
- โ Remove
marker.dragging
when not on the map, fixes #5293 (#5295 by danzel) - Stop scroll propagation in
L.Layers.Control
in chrome>55 (#5280 by IvanSanchez) - ๐ Allow HTML inputs in layer control's labels, fixes #5116 (#51165544 by iZucken)
- ๐ Fix possible null reference when auto detecting icon default path, fixes #5534 (#5535 by williamscs)
- ๐ Don't turn enter keypress into map clicks, fixes #5499 (#5507 by perliedman)
- ๐ Use minus character instead of hyphen in the zoom control (#5501 by damianmoore)
- โ Add deprecation notice for