Changelog
0.6.3 (2013-07-17)
ImageOverlay
(by @jfirebaugh). #1821layerremove
and layeradd
were fired before the corresponding action finishes (by @jfirebaugh). #1846worldCopyJump: true
breaking the map on small zoom levels (by @danzel). #1831Marker
shadow didn't animate on zoom after using setIcon
. #1768GeoJSON
ignored non-feature geometries passed in an array. #1840Map
minZoom
and maxZoom
didn't always override values derived from the added tile layers. 1848TileLayer.Canvas
wasn't immediately redrawn when redraw
is called (by @tofferrosen). #1797 #1817FeatureGroup
still fired layerremove
event on removeLayer
even if the given layer wan't present in the group (by (by @danzel)). #1847 #1858Marker
setOpacity
wasn't returning the marker (by @freepius44). #1851leaflet-bar
elements.setMaxBounds
(by @davidjb). #1834MultiPolyline
and MultiPolygon
getLatLngs
method. #1839dist
folder) were removed from the repo and are now done automatically on each commit for master
and stable
branches by Travis CI. The download links are on the Leaflet download page.Changelog
0.6.2 (2013-06-28)
Changelog
0.6.1 (2013-06-27)
Object.prototype
(luckily it's a thing of the past nowadays).Map
invalidateSize
no longer fires move
and moveend
events if the map size didn't change. #1819Control.Layers
icon (designed by Volker Kinkelin), added retina version and SVG source. #1739TileLayer
zoom animation to eliminate flickering in case one tile layer on top of another or when zooming several times quickly (by @mourner with lots of fixes from @danzel). #1140 #1437 #52map.attributionControl.setPrefix('')
if you need.Marker
popups to close on marker click if opened (by @popox). #1761toGeoJSON
method to various layer types, allowing you to save your Leaflet layers as GeoJSON. (by @jfirebaugh). #1462 #712 #1779GeoJSON
coordsToLatLng
option for dealing with GeoJSON that has non-WGS84 coords (thanks to @moonlite). #888 #886Marker
to reuse icon DOM elements when changing icons on the fly (e.g. fixes problems when changing icon on mouse hover) (by @robpvn & @danzel). #1726 #561 #1753 #1754latlng
property to Marker
mouse event data. #1613LayerGroup
hasLayer
method (by @rvlasveld). #1282 #1300LayerGroup
getLayers
method (by @tmcw). #1469LayerGroup
getLayer
method (by @gumballhead). #1650LayerGroup
removeLayer
method to also accept layer id
(by @gumballhead). #1642Path
pointerEvents
option for setting pointer-events on SVG-powered vector layers (by @inpursuit). #1053Polygon
to filter out last point if it's equal to the first one (to fix GeoJSON polygon issues) (by @snkashis). #1153 #1135clickable: false
to allow mouse events to pass through to objects underneath (by @snkashis). #1384 #1281L.Util.template
(and correspondingly url-related TileLayer
options) to support functions for data values (by @olegsmith). #1554TileLayer
getContainer
method (by @tmcw). #1433TileLayer.Canvas
redraw
method chaining (by @jieter). #1287TileLayer.WMS
crs
option to be able to use WMS of CRS other than the map CRS (by @kengu). #942 #945popupopen
and popupclose
events to various layers (by @Koc). #738Popup
keepInView
option (thanks to @lapo-luchini) that prevents the popup from going off-screen while it's opened. #1308 #1052Marker
togglePopup
method (by @popox). #1761Popup
closeOnClick
option that overrides the same Map
option for specific popups (by @jfirebaugh). #1669Marker
and Path
bindPopup
method to also accept Popup
objects (by @snkashis). #1385 #1208 #1402Marker
setPopupContent
method (by @snkashis). #1373Map
(setView
, panTo
, setZoom
, fitBounds
, etc.) to accept an options object, including the ability to precisely control zoom/pan animations they cause (force disable/enable, etc.). #1617 #1616 #340 #483 #1164 #1420Map
fitBounds
method to accept padding
(or paddingTopLeft
and paddingBottomRight
) options, allowing you to zoom to an area with a certain padding in pixels (usually left for controls). #859Map
invalidateSize
to accept options object (animate
and pan
, the latter controls if it pans the map on size change). (by @jacobtoye and @mourner). #1766 #1767Map
setZoomAround
method for zooming while keeping a certain point fixed (used by scroll and double-click zooming). #1157Map
remove
method to properly destroy the map and clean up all events, and added corresponding unload
event (by @jfirebaugh and @mourner). #1434 #1101 #1621Map
tap
handler that now contains all mobile hacks for enabling quick taps and long holds and tapTolerance
option specifying the number of pixels you can shift your finger for click to still fire.Map
zoomAnimationThreshold
for setting the max zoom difference with which zoom animation can occur. #1377Map
openPopup
method to also accept (content, latlng)
signature as a shortcut.Map
closePopup
method to optionally accept a popup object to close. #1641Map
stopLocate
method to abort resetting map view if calling locate
with setView
option. #747Map
to throw exception if the specified container id is not found (by @tmcw). #1574Map
locationfound
event to pass all location data (heading, speed, etc.). #984 #584 #987 #1028Map
resize
event. #1564Map
zoomlevelschange
event that triggers when the current zoom range (min/max) changes (by @moonlite). #1376Map
baselayerchange
, overlayadd
and overlayremove
events fired by Control.Layers
(by @calvinmetcalf and @Xelio). #1286 #1634Control
getContainer
method. #1409cleanAllEventListeners
method (aliased to off
without arguments) to all events-enabled objects (by @iirvine). #1599addOneTimeEventListener
method (aliased to once
) to all events-enabled objects (by @iirvine). #473 #1596{lat: 50, lon: 30}
or {lat: 50, lng: 30}
). #1412LatLngBounds
getNorth
, getEast
, getSouth
, getWest
methods (by @yohanboniface). #1318AMD
support (Leaflet now registers itself as a leaflet
AMD module) (with fixes from @sheppard). #1364 #1778L.Util.trim
function (by @kristerkari). #1607Map
maxBounds
. #1491 #1475 #1194 #900 #1333contextmenu
events on popups falling through to map (by @snkashis). #1730 #1732404
tile loading errors when browsing the map off the world bounds.TileLayer
opacity didn't work in IE 7-8 (by @javisantana & [@danzel](https://gi
.com/danzel)). #1084 #1396 #1371L.point
and L.latLng
factories weren't passing null
and undefined
values through.DomEvent
removeListener
function chaining (by @pagameba).removeEventListener
would throw an error if no events are registered on the object (by @tjoekbezoer). #1632 #1631Point
equals
and contains
methods didn't accept points in array form.LatLngBounds
extend
of an undefined object would cause an error (by @korzhyk). #1688Control.Attribution
removeAttribution
of inexistant attribution corrupted the attribution text. #1410setView
on an invisible map caused an error (by @jfire). #1707TileLayer.WMS
param values weren't escaped in URLs (by @yohanboniface). #1317TileLayer.WMS
tileSize
option was ignored (by @brianhatchl). #1080Polyline
constructor could overwrite the source array (by @snkashis and @danzel). #1439 #1092 #1246 #1426TileLayer
to prevent incorrect subdomain in case of negative tile coordinates (by @malexeev). #1532DivIcon
html
option to accept 0
as a value (by @stuporglue). #1633mousemove
in certain conditions. #1615TileLayer
bounds
(by @ansis). #1618TileLayer
load
event wouldn't always fire correctly. #1565TileLayer.WMS
compatibility with some old servers that only accepted request parameters in uppercase. #1751L.Icon.Default.imagePath
detection in some cases. #1657onRemove
was still called even if it was never added (by @jfirebaugh). #1729setRadius
on a Canvas-powered CircleMarker
would cause an infinite loop (by @snkashis). #1712 #1713 #1728marker-icon@2x.png
to marker-icon-2x.png
to fix compatibility with Google AppEngine. #1552 #1553popupclose
and popupopen
events weren't fired for multipolygons and multipolylines (by @tmcw). #1681Map
fitBounds
wouldn't work correctly with large bounds (thanks to @MaZderMind). #1069Map
hasLayer
wasn't handling null
objects (by @rvlasveld). #1282 #1302Map
moveend
fired before dragend
on drag (by @oslek). #1374Map
movestart
event on inertia start (by @oslek). #1374Map
moveend
fired repeatedly on window resize even if the actual map size didn't change (by @oslek). #1374Map
moveend
sometimes wasn't fired after drag (particularly often when dragging with a trackpad).Map
load
event listener. #962Map
autopanstart
event back (it was removed occasionally in previous version). #1375Map
maxBounds
(by @jec006). #1749 #1750Changelog
0.5.1 (2013-02-06)
GeoJSON
not accepting arrays of FeatureCollection
(by @snkashis). #1299 #1298CirleMarker
setRadius
not working if called before adding the layer to the map (by @danzel). #1342 #1297Be sure to read through these changes to avoid any issues when upgrading from older versions:
LatLng
wrapping/clamping of coordinates (-180, -90
to 180, 90
), wrapping moved to an explicit method (LatLng
wrap
).Map
worldCopyJump
option by default (jumping back to the original world copy when panning out of it). Enable it explicitly if you need it.Icon
iconRetinaUrl
and shadowRetinaUrl
options) (by @danzel). #1048 #1174L.Transition
with a much better and simpler L.PosAnimation
.Class
addInitHook
method for adding constructor hooks to any classes (great extension point for plugin authors). #1123Map
whenReady
method (by @jfirebaugh). #1063delta
argument to Map
zoomIn
and zoomOut
(1 by default).isValid
method to LatLngBounds
and Bounds
(by @domoritz). #972Point
equals
method.Bounds
getSize
method.Path
unbindPopup
and closePopup
methods.Path
add
and remove
event.Marker
riseOnHover
and riseOffset
options (for bringing markers to front on hover, disabled by default) (by jacobtoye). #914 #920Marker
move
and remove
events.Marker
contextmenu
event. #223Popup
zoomAnimation
option (useful to disable when displaying flash content inside popups #999).FeatureGroup
layeradd
and layerremove
events (by @jacobtoye). #1122Control.Layers
baselayerchange
event (by @jfirebaugh). #1064Control.Layers
to support HTML in layer names (by @aparshin). #1055 #1099CRS.Simple
to the list of built-in CRS and improved it to be more usable out of the box (it has different default scaling and transformation now), see debug/map/simple-proj.html
for an example.Browser
ua
, gecko
, opera
properties (no longer needed).L.extend
, L.bind
, L.stamp
, L.setOptions
shortcuts for corresponding L.Util
methods.L.Util.isArray
function (by @oslek). #1279mouseover
and mouseout
events to canvas-based vector layers (by @snkashis). #1403Map
eachLayer
to iterate over all layers added to the map (by @jfirebaugh). #1457TileLayer
bounds
option to limit tile loading to a specific region (by @adimitrov). #991panBy
wouldn't round the offset values (so it was possible to make the map blurry with it). #1085TileLayer
bringToBack
didn't work properly in some cases (by @danzel). #963 #959Map
load
event happened too late (after moveend
, etc.) (by @jfirebaugh). #1027Circle
getBounds
to return correct bounds and work without adding the circle to a map. #1068Popup
on viewreset
throwed an error (by fnicollet and @danzel). #1098 #1094TileLayer.Canvas
drawTile
didn't receive tile zoom level in arguments.GeoJSON
resetStyle
would not fully reset a layer to its default style. #1112latLngBounds
factory with coordinates as string values. #933Marker
setIcon
, setZIndexOffset
, update
methods. #1176FeatureGroup
bindPopup
didn't take options into account.CircleMarker
setStyle
didn't take radius
into account (by @fdlk). #1012 #1013layer
event property on click (by @snkashis). #1215 #1243TileLayer.WMS
didn't work correctly if the base URL contained query parameters (by @snkashis). #973 #1231GeoJSON
features with GeometryCollection
didn't pass properties to pointToLayer
function (by @calvinmetcalf). #1097FeatureGroup
eachLayer
chaining. #1452TileLayer
bringToFront/Back()
throwed an error in IE6-8. #1168-
key not working in Firefox 15+ (thanks to @mattesCZ). #869