All Versions
48
Latest Version
Avg Release Cycle
89 days
Latest Release
736 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v1.3.2 Changes
July 17, 2018π Improvements
- β Add
use-credentials
CORS option toImageOverlay
andTileLayer
(#6016 by caleblogan) + unit tests (#6022 and #6027 by ghybs) - Clean up references to global
L
in source code (#6047 and #6048 by ghybs) - π Allow reset of
Canvas
dashArray
option + support array type (#6200 by McBen)
π Bug fixes
- Respect the
preferCanvas
option in all panes (#6019 by mjumbewu) - Do not fire
tileload
event if tile has emptysrc
(#6025 by cherniavskii) - π Fix race condition when removing canvas before it has rendered (#6033 by louMoxy)
- π Fix memory leak in canvas renderer (#6117 by aj8k)
- π Fix dragging for CSS scaled map (#6055 by ghybs)
- π Handle
Polygon
s with empty array ofLatLng
s (#6119 by BakuCity) - π Fix view bounds calculation in geolocation event handler (#6140 by wladich)
- π Fix error removing map and resizing window at the same time (#6160 by danzel)
- Stop pan key event when pan animation is in progress (#6231 by cherniavskii)
π Docs & Web Site
- π Use more explicit tiles in
Map panes
example (#6018 by ghybs) - Document parameter of
closestLayerPoint
method (#6060 by mattdsteele) - β‘οΈ Update year ranges (#6076 by BakuCity)
- π Use https everywhere for OSM links (#6082 by rzoller)
- π Fix typo in
VideoOverlay.js
example docs (#6090 by zhuang-hao-ming) - π Fix typo in
LatLng
docstring (#6138 by jieter) - β Use https everywhere and get rid of mixed content warnings (#6151 by theel0ja)
- π» More accurate
Browser.retina
explanation (#6203 by JLuc) - π Use link to official RFC 7946 GeoJSON spec (#6211 by ghybs)
ES6 / Rollup
- β Add ES module build (#6021 by Rich-Harris)
Development workflow
- π Move external dependencies to
node_modules
(#6028 by cherniavskii) - β Remove
jake
dependency and use NPM scripts instead (#5828 by cherniavskii) - β‘οΈ Update
ssri
dependency to5.2.2
(#6086 by cherniavskii) - Set div width for
getBoundsZoom
parameterinside
(#6192 by ghybs) - π Fix unit tests for graphical browsers (#6199 and #6202 by ghybs)
- π· Run tests in Firefox graphical browser as part of CI (#5831 by cherniavskii)
- β Add
-
v1.3.1 Changes
January 18, 2018 -
v1.3.0 Changes
January 15, 2018API changes
- β Add
tolerance
option toL.Renderer
instead of hardcoded tolerance for touch devices (#5922 by Muscot).
π Improvements
- π Use more stable form of Haversine formula (#5935 by jussimattas)
- β Add
autoPan
option toL.Marker
(#5651 by alenaksu) - Cancel http requests for outdated tiles (#5615 by jbccollins)
- β Add
closeOnEscapeKey
option toL.Popup
(#5730 by Mickyfen17) - β Add
tileerror
tests toL.GridLayer
spec (#5805 by msiadak) - π Use
eachLayer
method for iterations over layers inL.LayerGroup
(#5809 by cherniavskii) - π Change
Util.formatNum
default to 6 decimals (#5492 by fminuti) - Fire
zoomlevelschange
event when callingsetMinZoom
&setMaxZoom
(#5230 by mynameisstephen) - π Use zoom parameter if passed to
L.TileLayer
'sgetTileUrl
method (#5822 by broncha) - Round circle radius in renderer instead of layer (#5859 by perliedman)
- π Make
L.LayerGroup
accept options (#5792 by iH8) - Round pan offset towards zero (#5858 by perliedman)
- π Improve heuristic for what event targets are considered markers (#5885 by perliedman)
- β Add
typeof
check tocheckDeprecatedMixinEvents
(#5901 by murb) - β‘οΈ Optimize images (#5936 by grischard)
- β Add
addTo
static function toL.Handler
class (#5930 by cherniavskii) L.ImageOverlay
acceptsImageElement
(#5948 by ronikar)
π Bug fixes
- π Fix adding CSS classes in
L.VideoOverlay
, which caused map crash in IE8 (#5731 by Dzwiedzminator and #5785 by cherniavskii) - No inertia if drag is stopped before ending the drag (#5690 by perliedman)
- β Remove tiles from the
_tiles
cache when they're aborted (#5634 by oliverheilig) - π Use same condition for adding as well as removing double tap listener (#5598 by perliedman)
- Correctly wrap tile coordinate bounds (#5715 by perliedman)
- π Fix
L.TileLayer
infinite error loop (#5783 by cherniavskii) - π Fix map not rendering when images have max-height (#5778 by idanen)
- β Add defensive check for
this._map
inL.Marker
'supdate
method (#5736 by dnepromell) - π Fix zoom when map container is scaled (#5794 by cherniavskii)
- β‘οΈ Update DomPointer.js to revert typo (#5817 by daverayment)
- π Fix
L.ImageOverlay
className
option (#5830 by cherniavskii) - π Fix
L.TileLayer.WMS
when using Polar stereographic (#5618 by scaddenp) - Stop animation before removing map (#5876 by dnepromell and #5918 by aaronplanell)
- Stop locate before removing map (#5893 by ghybs)
- Reset
GridLayer
's_tileZoom
toundefined
instead ofnull
(#5888 by iH8) - π Fix
L.Map
'smap.flyTo
method to respectnoMoveStart
option (#5923 by iPrytz) - π Fix map pan when
touchZoom
is disabled (#5952 by cherniavskii) - π Fix
L.SVG
to reset size on remove from map (#5966 by ghybs) - π Fix
L.Marker
to setalt
attribute for img-based Icons only (#5979 by msiadak)
π Docs & Web Site
- β Add documentation for
PolyLine.closestLayerPoint
(#5701 by perliedman) - π Replace urls for samples in wms documentation (#5712 by jjimenezshaw)
- β Add
DomEvent.stop
event type to docs (#5733 by theashyster) - β‘οΈ Update links to GeoJSON spec in GeoJSON examples (#5725 by astridx)
- π Improve docs for
L.LatLngBounds
pad
method (#5748 by CalvinWilliams1012) - π Improve Zoom-levels documentation to reflect function properly (#5769 by CalvinWilliams1012)
- π Fix map's height and width in examples to make attributions visible on mobile (#5772 by CalvinWilliams1012 and #5819 by cherniavskii)
- π Fix
L.FeatureGroup
bringToBack
method docs (#5788 by fpopa) - π Fix
L.LatLng
distanceTo
method description (#5791 by loisgh) - π Fix docs redirects to latest version reference (#5824 by cherniavskii)
- β Add CDN alternatives (#5837 by ghybs)
- β‘οΈ Update docs for
L.DomEvent.off()
(#5855 by 77ganesh and #5976 by kring) - π Move
L.SVG
factory docs to appropriate place (#5864 by cherniavskii) - π New Leaflet playgrounds on Plunker, Codepen and JSFiddle (#5868 by iH8)
- Clarify that any option keys can be used (#5877 by perliedman)
- β Add notes about some classes not inheriting Class (#5878 by perliedman)
- Clean up and document event propagation properties (#5880 by perliedman)
- β‘οΈ Update building instructions (#5911 by shadeland)
- Document
mouseup
event for interactiveL.Layer
(#5941 by germansokolov13) - β‘οΈ Document
L.Icon
'stooltipAnchor
option, updatetooltipAnchor
andpopupAnchor
default values docs (#5989 by cherniavskii)
ES6 / Rollup
- π Tweak
legacy
option in rollup config - now Leaflet works in IE again (#5929 by IvanSanchez) - β Remove warning alert in watch bundle (#5714 by perliedman)
- π New rollup config signature (#5812 by iH8)
- β Add
-
v1.2.0 Changes
October 25, 2017API 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
-
v1.1.0 Changes
June 27, 2017π 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
-
v1.0.3 Changes
January 23, 2017π Bug fixes
- Avoid extra
L.Canvas
redraws on several scenarios (by @perliedman, #5250, also thanks to @manubb for investigation and PR). - π Fix behaviour of
dblclick
events in Chrome 55 due toPointerEvent
s (by @IvanSanchez, #5185, #5248, #5268). - π Fix a dangling comma making IE8 fail to parse the code (by @batje, #5270).
- π Backport event handling fixes from #5054 into
L.SVG.VML
for IE8 (by @IvanSanchez, #5215). - π Fix a race condition when closing popups during their
popupopen
event (by @hagai26, #5202). - π Fix
getBoundsZoom
return value on CRSs with a flipped axis (by @computerlove, #5204). - Avoid infinite loops when the
errorTileUrl
of aL.TileLayer
returns 404 (by @IvanSanchez, #5177). - β Remove erroneous initialization of unused event listeners (by @Brikky, #5160).
- π Fix rounding of
L.Canvas
redraw areas to avoid artifacts during partial updates (by @Ernie23, #5148). - π Fix
isPopupOpen()
behaviour ofL.Layer
when no popup is bound to a layer (by @gvangool, #5106). - β Add a sanity check in
LatLngBounds.contains()
to allow for non-instantiatedLatLng
objects (by @IvanSanchez, #5135). - π Fix collapsing of
L.Control.Layers
when thecollapse
option isfalse
(by @perliedman, #5131).
API changes
- β Added a new
WrapLatLngBounds
method toL.CRS
, to fix an issue withmaxBounds
ofGridLayer
s (by @IvanSanchez, #5185, also thanks to @DiogoMCampos for investigation). L.Map.getSize()
will now return0
instead ofNaN
in non-graphical environments (by @ughitsaaron, #5209).
π Improvements
- π Several minor documentation improvements by @IvanSanchez, @jieter, @alonsogarciapablo, @jasonoverland, @danzel, @ghybs, @Ralf8686, @geoloep
- β Add an
alt
attribute to the<img>
s of marker shadows (by @topicus, #5259).
- Avoid extra
-
v1.0.2 Changes
November 21, 2016π Bug fixes
- π Fix CSS for marker shadows when
max-width
is already set (by @brunob, #5046). - π Fix canvas redraw when style updates fill and/or weight (by @perliedman, #5034).
- Prevent canvas from firing multiple
mouseover
events for same layer (by @perliedman, #5033). - π Fixed a race condition when removing and adding
L.Canvas
vectors during a zoom animation (by @ghybs) #5011. - π Fix zoom animation of ImageOverlay when CRS's Y axis is flipped (by @perliedman), #4993.
- π Fix encoding/decoding of GeoJSON
FeatureCollection
s (by @IvanSanchez), #5045. - π Fix
minZoom
/maxZoom
late inizialization (by @IvanSanchez), #4916. - π Fix styling of custom SVG markers by making stricter CSS selectors (by @jwoyame) #4597.
- π Fix order of
mouseover
/mouseout
events on overlappingL.Canvas
layers (by @perliedman), #5090. - π Fix drag behaviour when a draggable marker is removed in mid-drag (by @IvanSanchez, #5063.
- π Fix
L.Control.Layers.collapse()
on initially uncollapsed layer controls (by @perliedman), #5131. - π Fix blurriness of
L.Tooltip
by rounding up pixel coordinates (by @ashmigelski), #5089. - π Fix click events on overlapping geometries when using
L.Canvas
(by @perliedman), #5100.
API changes
- β Add a
sortLayers
option toL.Control.Layers
(by @IvanSanchez, #4711. - Implement
bringToFront
andbringToBack
when usingL.Canvas
, plus preventing other canvas glitches (by @perliedman), #5115. - β Add
minNativeZoom
option toL.TileLayer
s. (by @bb-juliogarcia), #5088.
π Improvements
- π Improve performance when adding lots of
L.Path
s by refactoring away event logic (by @IvanSanchez) #5054)]. - π Several minor documentation improvements by @Jmuccigr, @serdarkacka, @erickzhao, @IvanSanchez, @perliedman, @joukewitteveen.
- Code reorganization: Extensions for
L.Marker
andL.Map
no longer have a separate file (by @mourner). - β Removed a duplicated unit test (@yohanboniface).
- Accesibility improvements (ARIA/screenreader related) on map tiles (by @patrickarlt) #5092.
- π Fix CSS for marker shadows when
-
v1.0.1 Changes
September 30, 2016π Bug fixes
- π Fixed vector rendering regression in IE8 (by @perliedman) #4656.
- π Fixed Webpack error when bundling Leaflet's CSS (by @jefbarn) #4679.
-
v1.0.0 Changes
September 26, 2016API changes
- β Remove deprecated
zoomanimated
option forL.Popup
s (by @fnicollet) #4699
π Improvements
- π Several minor fixes to the documentation (by @IvanSanchez, @alejo90, @ghybs, @JonasDralle)
- β Add license to
bower.json
(by @anotherredward) #4865 - π Allow creating tooltips without a source layer (by @yohanboniface) #4836
- 0οΈβ£ Detect
L.Icon
default path using CSS (by @IvanSanchez) #4605
π Bug fixes
- π Fix handling of
getScaleZoom
in some custom CRSs (by @theashyster) #4919 - Guard
L.Path
event handlers against race conditions (by @perliedman and @IvanSanchez) #4855 #4929 #4838 - In
L.GridLayer
s, wraptileBounds
whennoWrap
is false (by @fyeah) #4908 - π Fix
L.Path
'sbringToFront()
behaviour in the Edge browser (by @nikolai-b) #4848 - β Remove spurious counting of event handlers (by @perliedman) #4842
- Throw error on
getCenter()
when aL.Polygon
has no map and thus no CRS (by @snkashis) #4820 - Add a
_leaflet_id
to map containers to prevent error when removing a map twice (by @IvanSanchez) #4810 - Do not fail when closing a tooltip which is not in a map (by @yohanboniface) #4937
- β Remove deprecated
-
v1.0-rc3 Changes
August 05, 2016API changes
- 0οΈβ£
L.Tooltip
offset
option now defaults to[0, 0]
(by @yohanboniface) #4773 - Event listeners are now always called in the order they have been registered, while until rc2 listeners with a context were all called before listeners without context (even if registered later), and the listeners with context were called in an unpredictable order (by @yohanboniface) #4769
π Improvements
π Bug fixes
- π Fixed regression where event listeners where not always fired in the order of registration (by @yohanboniface) #4769
- π Fixed
L.Tooltip
zoom animation (by @yohanboniface) #4744 - π Fixed
layer.bindTooltip
crashing when called before adding the layer to the map (by @yohanboniface) #4779 - π Fixed regression in
L.Popup
autopaning (by @yohanboniface) #4768 - π Fixed non permanent
L.Tooltip
not being closed on touch when touching the map (by @yohanboniface) #4767 - π Fixed
popupopen
andpopupclose
not being fired when clicking on path with an open popup (by @yohanboniface) #4788
- 0οΈβ£