Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaflet 1.0 support #1

Closed
29 tasks done
dmolineus opened this issue Jul 22, 2015 · 2 comments
Closed
29 tasks done

Leaflet 1.0 support #1

dmolineus opened this issue Jul 22, 2015 · 2 comments

Comments

@dmolineus
Copy link
Member

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
@catbadger
Copy link

When updating plugins, what do I replace splicelatlngs with?

@dmolineus
Copy link
Member Author

@catbadger Depends on what you want to do. LeafletPHP didn't support it anyway. If you want to convert the latlangs on PHP side, you could use https://github.com/netzmacht/php-leaflet/blob/master/src/Netzmacht/LeafletPHP/Value/LatLng.php#L125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants