Fixed events bindind in UMD build.
- Updated propTypes to allow polygons with holes in
MultiPolygon(PR #218 by ernoaapa). - Fixed badly named
ScaleControlclass.
- Fixed unmounting
LayersControlwhen theMapis unmounting as well. - Added a plugins section to the documentation.
- [BREAKING] Moved Leaflet instances injection from props to context. All components provided by this lib should continue to work as expected, but custom components need to be updated. Read the UPGRADING file for more information.
- Deprecated
getLeafletElement()method, simply use theleafletElementproperty instead. - Documentation moved to the docs folder and has been split into different files for better readability.
Fixed removing layers from LayersControl.
- Fixed allowing to set and update the
styleprop as a function inGeoJson. - [internal] Added lodash-webpack-plugin to reduce the size of the UMD build.
- Fixed updating
boundsOptionsin theMapwithout updatingbounds. - Fixed setting
opacityandzIndexproperties to0in tile layers.
Fixed TileLayer properties update.
Made the draggable property in Marker dynamic (PR #148 by riolowry).
Fixed layer removal in LayersControl.
Fixed map property injection in LayersControl (PR #142 by Dahlgren).
- [BREAKING] Added
layerContainerproperty as a consistent replacement formaporlayerGroup(PR #132 by boromisp). This is only breaking if you are creating custom components, as you will need to make sure to also inject thelayerContainerproperty to children layers as you need to do withmap. - Changed
LayersControlto be based on components:- Added
LayersControl.BaseLayercontainer component to add a base layer to aLayersControl. - Added
LayersControl.Overlaycontainer component to add an overlay to aLayersControl. baseLayersandoverlaysproperties forLayersControlare still supported but deprecated. Using either of them will make theLayersControlbehave the same way it does in versions < 0.11.
- Added
- Deprecated
onLeaflet...properties for events, simply useon..., exonClickinstead 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-varslinting (PR #131 by boromisp).
- Added
animateoptional property toMap(PR #126 by mariusandra). - Added React v15.0.0-rc.1 support as peer dependency.
- Added the popup container as source layer to
Popupcreation, fixes #113 (PR #112 by amarant). - [internal] Updated Lodash to v4.
- Added
AttributionControl,LayersControlandScaleControl(PR #100 by jonboiser). - Added example to render a list of custom Markers (PR #104 by varya).
- [internal] Updated Babel to v6.
- Removed
PopupContainercomponent, extended internally by other components. FeatureGroupnow expects its layers to be passed as children, likeLayerGroup.- Added
renderChildrenWithProps()toMapLayer, used internally by the library. - Added
MapControlas base component for controls. - Added
ZoomControl.
Fix PropTypes export.
Changes from v0.7.0:
- Updated React to v0.14.0.
- Added ReactDOM v0.14.0 to peer dependencies.
Popupnow renders its contents usingReactDOM.render()and therefore supports dynamic children.Mapnow supports dynamicboundsandmaxBoundsproperties (#72).- Added
LayerGroupcomponent (#58).
Check if Popup content node exists before trying to unmount.
- Updated React to v0.14.0-rc1.
- Added ReactDOM v0.14.0-rc1 to peer dependencies.
Popupnow renders its contents usingReactDOM.render()and therefore supports dynamic children.
- Updated Leaflet to v0.7.5.
- Added
Pathbase component for vector layers, handling dynamic Path options properties. - Added support for holes in
Polygon. - [internal] Updated Jest to v0.5.
- [internal] Updated Gulpfile to use Babel.
- [internal] Added ESLint validation.
Fix ignored events in MapComponent
(#41).
Fix PopupContainer export.
- Added
styleproperty on theMapcomponent. - Replaced the
<noscript>element inPopupContainerby a<div>to be properly updated.
Set icon, zIndexOffset and opacity properties as dynamic on Marker.
- Removed
getLeafletElement()deprecation. - Updated Babel to v5.
Released v0.4.
React v0.13.0.
- Updated React dependency to v0.13.0-rc2:
- Components are defined as ES6 classes.
- Mixins are replaced by the base components
MapComponent,MapLayer,BaseTileLayerandPopupContainer. All components extend from these. - The new
React.cloneElement()API is used instead of the deprecatedReact.addons.cloneWithProps()to pass themapproperty to the components. - The
mapproperty has been removed from the componentspropTypesdefinition as it is dynamically injected to its children by theMapcomponent, React would now warn it is not set. It is still required by components to have access to the Leaflet object.
- Events can now be set as
on{Event}rather thanonLeaflet{Event}, exonClickinstead ofonLeafletClick, as all events are proxied to Leaflet. - Deprecated
getLeafletElement()method, simply use theleafletElementproperty instead to access the Leaflet object created for a component.