github PaulLeCam/react-leaflet v0.11.0

latest releases: v5.0.0-rc.1, v4.2.1, v4.2.0...
8 years ago
  • [BREAKING] Added layerContainer property as a consistent replacement for map or layerGroup (PR #132 by boromisp). This is only breaking if you are creating custom components, as you will need to make sure to also inject the layerContainer property to children layers as you need to do with map.
  • Changed LayersControl to be based on components:
    • Added LayersControl.BaseLayer container component to add a base layer to a LayersControl.
    • Added LayersControl.Overlay container component to add an overlay to a LayersControl.
    • baseLayers and overlays properties for LayersControl are still supported but deprecated. Using either of them will make the LayersControl behave the same way it does in versions < 0.11.
  • Deprecated onLeaflet... properties for events, simply use on..., ex onClick instead of onLeafletClick.
  • Added warnings for deprecated features, the same way React does. Make sure to address these warnings to ease the transition to future releases.
  • Added React v15.0.0 support as peer dependency.
  • [internal] Fixed no-unused-vars linting (PR #131 by boromisp).

Don't miss a new react-leaflet release

NewReleases is sending notifications on new releases.