Fixed events bindind in UMD build.
- Updated propTypes to allow polygons with holes in
MultiPolygon
(PR #218 by ernoaapa). - Fixed badly named
ScaleControl
class.
- Fixed unmounting
LayersControl
when theMap
is 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 theleafletElement
property 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
style
prop as a function inGeoJson
. - [internal] Added lodash-webpack-plugin to reduce the size of the UMD build.
- Fixed updating
boundsOptions
in theMap
without updatingbounds
. - Fixed setting
opacity
andzIndex
properties to0
in 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
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).
- Added
animate
optional 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
Popup
creation, fixes #113 (PR #112 by amarant). - [internal] Updated Lodash to v4.
- Added
AttributionControl
,LayersControl
andScaleControl
(PR #100 by jonboiser). - Added example to render a list of custom Markers (PR #104 by varya).
- [internal] Updated Babel to v6.
- 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
.
Fix PropTypes
export.
Changes from v0.7.0:
- Updated React to v0.14.0.
- Added ReactDOM v0.14.0 to peer dependencies.
Popup
now renders its contents usingReactDOM.render()
and therefore supports dynamic children.Map
now supports dynamicbounds
andmaxBounds
properties (#72).- Added
LayerGroup
component (#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.
Popup
now renders its contents usingReactDOM.render()
and therefore supports dynamic children.
- Updated Leaflet to v0.7.5.
- Added
Path
base 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
style
property on theMap
component. - Replaced the
<noscript>
element inPopupContainer
by 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
,BaseTileLayer
andPopupContainer
. All components extend from these. - The new
React.cloneElement()
API is used instead of the deprecatedReact.addons.cloneWithProps()
to pass themap
property to the components. - The
map
property has been removed from the componentspropTypes
definition as it is dynamically injected to its children by theMap
component, 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}
, exonClick
instead ofonLeafletClick
, as all events are proxied to Leaflet. - Deprecated
getLeafletElement()
method, simply use theleafletElement
property instead to access the Leaflet object created for a component.