React Leaflet Versions Save

React components for Leaflet maps

v4.2.1

1 year ago

Fixed bounds update in ImageOverlay (PR #1063 by hwonyo)

v4.2.0

1 year ago

Added support for mutable url prop on TileLayer (PR #1047 by goto-bus-stop)

v4.1.0

1 year ago
  • Updated Leaflet dependency to v1.9.
  • Fixed eventHandlers object being injected in WMS request URL.
  • Added support for dynamic bounds props on ImageOverlay.

v4.0.2

1 year ago

v4.0.1

1 year ago

Fix calling map.remove() on MapContainer unmounting.

v4.0.0

2 years ago

Changes from v3:

Breaking changes

  • React v18 and Leaflet v1.8 are now required as peer dependency.
  • ES2020 is the new compilation target version.
  • Removed useMapElement hook.
  • Removed MapConsumer component.
  • Removed whenCreated property from the MapContainer component (a ref callback can be used instead).
  • Removed onOpen and onClose properties from Popup and Tooltip components.
  • Removed CommonJS distribution.
  • Removed UMD distribution.

Other changes

  • Added support for React v18 (concurrent mode).
  • Added support for ref in the MapContainer and Pane components.
  • Added createLeafletContext function to core.
  • The created element and context objects are now frozen (immutable).

v4.0.0-beta.1

2 years ago

Updated Leaflet dependency to v1.8 beta.

v4.0.0-beta.0

2 years ago

Updated React dependencies to v18 stable.

v4.0.0-alpha.2

2 years ago
  • Added createLeafletContext function to core.
  • Updated React dependencies to v18 RC2.
  • Changed Leaflet dependency range to v1.7.x until tested with v1.8.x.

v4.0.0-alpha.1

2 years ago

Breaking changes

  • React v18 is now required as peer dependency.
  • ES2020 is the new compilation target version.
  • Removed useMapElement hook.
  • Removed MapConsumer component.
  • Removed whenCreated property from the MapContainer component.
  • Removed onOpen and onClose properties from Popup and Tooltip components.
  • Removed CommonJS distribution.
  • Removed UMD distribution.

Other changes

  • Added support for React v18 (concurrent mode).
  • Added support for ref in the MapContainer and Pane components.
  • The created element and context objects are now frozen (immutable).
  • Updated docs for v4 support.