- 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.