Skip to content

Verify Leaflet 1.0 support #65

Description

@nrenner

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

  • Added SVG & Canvas classes that now contain all renderer-specific code for vector layers and can be added as layers to the map.
  • All vector layer classes (Path, Polyline, etc.) now don't contain any renderer-specific code and instead can be passed a renderer layer to use as renderer in options;
  • Removed MultiPolyline and MultiPolygon classes since multiple rings are now handled by Polyline and Polygon classes respectively. Layers with multiple rings now perform much better (since each is now physically a single path object instead of being a FeatureGroup of layers).
  • Changed Circle to inherit from CircleMarker and not the other way.
  • Removed Polyline and Polygon spliceLatLngs method (just use setLatLngs instead).
  • Changed Polygon getLatLngs to always return an array of rings (nested array) (by yohanboniface). #2618 #3386 Leaflet/Leaflet#3279 #2648
  • Removed L_PREFER_CANVAS global switch and added Map preferCanvas option instead (by yohanboniface). #3623

Layers API improvements

  • Removed Map tilelayersload event.
  • Removed Popup open and close events in favor of add and remove for consistency.
  • Moved all layer-related logic in Map.js to Layer.js.
  • Renamed clickable option to interactive (by AndriiHeonia). #2838 #2499

TileLayer API improvements

  • Removed TileLayer.Canvas in favor of the much more flexible and powerful GridLayer.
  • Removed url property in tileload and tileloadstart events (get it through tile.src).

Other breaking API changes

  • Changed DomUtil off to require context attribute if you remove a listener that was previously added with a particular context.
  • Removed DomUtil.getViewportOffset method as it is no longer necessary.
  • Removed DomUtil getTranslateString and getScaleString methods.
  • Removed DomUtil documentIsLtr method.
  • Removed LatLng RAD_TO_DEG, DEG_TO_RAD and MAX_MARGIN constants.
  • Renamed Util.limitExecByInterval to Util.throttle.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions