react-leaflet v0.4.0-beta.1 Release Notes

Release Date: 2015-03-08 // about 9 years ago
    • ⚡️ Updated React dependency to v0.13.0-rc2:
      • 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.