Skip to content

Leaflet 1.0 support #1

@dmolineus

Description

@dmolineus

Leaflet 1.0 has some changes which have to be implemented:

Vectors API changes

  • Support of Renderer
  • Removal of MultiPolyline and MultiPolygon
  • getCenter Method of Polyline and Polygon
  • Changed Circle to inherit from CircleMarker and not the other way.
  • Removed Polyline and Polygon spliceLatLngs
  • Changed Polygon getLatLngs to always return an array of rings (nested array)
  • Added the ability to specify a custom pane for vector layer
  • Added vector layers fillRule option. #2834
  • Removed L_PREFER_CANVAS global switch and added Map preferCanvas option instead.

Layers API improvements

  • Added Layer class which all layers added to a map should inherit from.
  • Added remove method to layers and controls (marker.remove() is now equivalent to map.removeLayer(marker)).
  • Added pane option to all layers that can be changed (e.g. you can set pane: 'overlayPane' to a tile layer).
  • Added map createPane method for custom panes. #1742
  • Added shadowPane option to markers as well.
  • Added togglePopup, setPopupContent, getPopup, isPopupOpen methods to all layers. #2279 #2292
  • Removed Map tilelayersload event.
  • Renamed clickable option to interactive. #2838 #2499
  • Added nonBubblingEvents option to layers #3605 #3307 #3604

Other API improvements

  • Added LatLng equals second argument maxMargin.
  • Added optional support for center-oriented scroll for L.map option touchZoom. #2527
  • Added Marker mousemove event. #2798
  • Added LatLng clone method. #3390
  • Added Map setMinZoom and setMaxZoom method. #3383 #3380
  • Added Popup autoClose option #2716 #1853
  • Added Control.Zoom enable and disable methods. #3172
  • Added Map wheelDebounceTime option (by @AndriiHeonia). #2836 #2501
  • Added ImageOverlay alt option. #2767 #2564
  • Added Map maxBoundsViscosity option that controls how much the map resits dragging out of max bounds (set to 1 for a hard limit). #2224 #3510 #1673
  • Added Bounds and LatLngBounds overlaps method. #2981 #3508

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions