Skip to content

v0.4

Compare
Choose a tag to compare
@PaulLeCam PaulLeCam released this 28 Mar 14:37
· 560 commits to master since this release
  • Updated React dependency to 0.13:
    • Components are defined as ES6 classes.
    • Mixins are replaced by the base components MapComponent, MapLayer, BaseTileLayer and PopupContainer. All components extend from these.
    • The new React.cloneElement() API is used instead of the deprecated React.addons.cloneWithProps() to pass the map property to the components.
    • The map property has been removed from the components propTypes definition as it is dynamically injected to its children by the Map 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 than onLeaflet{Event}, ex onClick instead of onLeafletClick, as all events are proxied to Leaflet.
  • Deprecated getLeafletElement() method, simply use the leafletElement property instead to access the Leaflet object created for a component.