Plugin support
breaking changes
My (possibly incomplete) selection of probably breaking changes from the list of API changes, see Changelog 1.0-beta1 and later.
1.0-rc1 (April 18, 2016)
API changes
1.0-beta1 (July 14, 2015)
Vectors API improvements
Layers API improvements
TileLayer API improvements
Other breaking API changes
Plugin support
leaflet-dist: 0.7.x- workaround in 761a053Leaflet.draw - since v0.4.0, update to v0.4.9- see Replace Leaflet.draw with Leaflet.Editable #100breaking changes
L.Browser.touch- Leaflet 1.0: Touch style in desktop browsers #69My (possibly incomplete) selection of probably breaking changes from the list of API changes, see Changelog 1.0-beta1 and later.
1.0-rc1 (April 18, 2016)
API changes
L.LatLng.equalstoL.CRS.equals. (by perliedman) #40741.0-beta1 (July 14, 2015)
Vectors API improvements
SVG&Canvasclasses that now contain all renderer-specific code for vector layers and can be added as layers to the map.Path,Polyline, etc.) now don't contain any renderer-specific code and instead can be passed a renderer layer to use asrendererin options;MultiPolylineandMultiPolygonclasses since multiple rings are now handled byPolylineandPolygonclasses respectively. Layers with multiple rings now perform much better (since each is now physically a single path object instead of being aFeatureGroupof layers).Circleto inherit fromCircleMarkerand not the other way.PolylineandPolygonspliceLatLngsmethod (just usesetLatLngsinstead).PolygongetLatLngsto always return an array of rings (nested array) (by yohanboniface). #2618 #3386 Leaflet/Leaflet#3279 #2648L_PREFER_CANVASglobal switch and addedMappreferCanvasoption instead (by yohanboniface). #3623Layers API improvements
Maptilelayersloadevent.Popupopenandcloseevents in favor ofaddandremovefor consistency.Map.jstoLayer.js.clickableoption tointeractive(by AndriiHeonia). #2838 #2499TileLayer API improvements
TileLayer.Canvasin favor of the much more flexible and powerfulGridLayer.urlproperty intileloadandtileloadstartevents (get it throughtile.src).Other breaking API changes
DomUtiloffto requirecontextattribute if you remove a listener that was previously added with a particular context.DomUtil.getViewportOffsetmethod as it is no longer necessary.DomUtilgetTranslateStringandgetScaleStringmethods.DomUtildocumentIsLtrmethod.LatLngRAD_TO_DEG,DEG_TO_RADandMAX_MARGINconstants.Util.limitExecByIntervaltoUtil.throttle.