Releases: PaulLeCam/react-leaflet
Releases · PaulLeCam/react-leaflet
v0.11.0
- [BREAKING] Added
layerContainer
property as a consistent replacement formap
orlayerGroup
(PR #132 by boromisp). This is only breaking if you are creating custom components, as you will need to make sure to also inject thelayerContainer
property to children layers as you need to do withmap
. - Changed
LayersControl
to be based on components:- Added
LayersControl.BaseLayer
container component to add a base layer to aLayersControl
. - Added
LayersControl.Overlay
container component to add an overlay to aLayersControl
. baseLayers
andoverlays
properties forLayersControl
are still supported but deprecated. Using either of them will make theLayersControl
behave the same way it does in versions < 0.11.
- Added
- Deprecated
onLeaflet...
properties for events, simply useon...
, exonClick
instead ofonLeafletClick
. - 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).
v0.10.2
v0.10.1
v0.10.0
v0.9.0
- Removed
PopupContainer
component, extended internally by other components. FeatureGroup
now expects its layers to be passed as children, likeLayerGroup
.- Added
renderChildrenWithProps()
toMapLayer
, used internally by the library. - Added
MapControl
as base component for controls. - Added
ZoomControl
.
v0.8.1
v0.8.0
v0.8.0-rc.3
v0.8.0-rc.2
Check if Popup
content node exists before trying to unmount.
v0.8.0-rc.1
- Updated React to v0.14.0-rc1.
- Added ReactDOM v0.14.0-rc1 to peer dependencies.
Popup
now renders its contents usingReactDOM.render()
and therefore supports dynamic children.