v1.1.0
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
nonBubblingEventsinto a documented boolean option (#4883 by IvanSanchez) - Add
L.transformationfactory, allow creation from array (#5282 by anetz89) toGeoJSONmethods 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.htmlnow 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
ImageOverlaylayer and added tests for the new (#5416 by Saulzi) - Add
classNameoption forImageOverlay(#5555 by perliedman)
Bug fixes
- Handle edge case of empty bounds on
_getBoundsCenterZoom(#5157 by IvanSanchez) - Add new methods to
L.Boundsfor 2 missing corners, fixes #5475 (#5488 by ghybs) - Handle
Polylines with empty array ofLatLngs, #5497 (#5498, by perliedman) - Take
devicePixelRatiointo 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.Eventsa simple object instead of a prototype so it doesn't have a 'constructor' property, fixes #5451 (#5453 by luiscamachopt) - Canvas: call
ctx.setLineDashin_fillStroke#5182 (#5454 by TeXitoi) - Only rearrange DOM in
toFront/toBackif 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
ImageOverlayfor 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
lastIdinUtil(#5349 by DenisCarriere) - Do not stop keypress on escape if no popup is open, plus unit tests (#5331 (by IvanSanchez)
- Docs: remove
iframeborders on examples (#5327) (by tariqksoliman) - Pull
min/maxNativeZoomfromTileLayerintoGridLayer, 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.equalsmethod (#5071 by miguelcobain) - Add
L.Draggableoptions 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.draggingwhen not on the map, fixes #5293 (#5295 by danzel) - Stop scroll propagation in
L.Layers.Controlin 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)