react-leaflet

React components for Leaflet maps

OTHER License

Downloads
2.9M
Stars
4.9K
Committers
113

Bot releases are visible (Hide)

react-leaflet - v5.0.0-rc.1 Latest Release

Published by PaulLeCam 5 months ago

  • React v19 is now required as peer dependency.
  • Removed LeafletProvider component from the core package.
react-leaflet - v4.2.1

Published by PaulLeCam over 1 year ago

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

react-leaflet - v4.2.0

Published by PaulLeCam almost 2 years ago

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

react-leaflet - v4.1.0

Published by PaulLeCam about 2 years ago

  • Updated Leaflet dependency to v1.9.
  • Fixed eventHandlers object being injected in WMS request URL.
  • Added support for dynamic bounds props on ImageOverlay.
react-leaflet - v4.0.2

Published by PaulLeCam about 2 years ago

react-leaflet - v4.0.1

Published by PaulLeCam over 2 years ago

Fix calling map.remove() on MapContainer unmounting.

react-leaflet - v4.0.0

Published by PaulLeCam over 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).
react-leaflet - v4.0.0-beta.1

Published by PaulLeCam over 2 years ago

Updated Leaflet dependency to v1.8 beta.

react-leaflet - v4.0.0-beta.0

Published by PaulLeCam over 2 years ago

Updated React dependencies to v18 stable.

react-leaflet - v4.0.0-alpha.2

Published by PaulLeCam over 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.
react-leaflet - v4.0.0-alpha.1

Published by PaulLeCam over 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.

Links

react-leaflet - v3.2.5

Published by PaulLeCam almost 3 years ago

Fix supporting mutable whenCreated with unmounting MapContainer.

react-leaflet - v3.2.4

Published by PaulLeCam almost 3 years ago

Fix removing the map handlers when MapContainer is unmounted.

react-leaflet - v3.2.3

Published by PaulLeCam almost 3 years ago

react-leaflet - v3.2.2

Published by PaulLeCam about 3 years ago

Fix layer unmount (PR #916 by piitaya).

react-leaflet - v3.2.1

Published by PaulLeCam about 3 years ago

  • Fix Popup unmounting logic to unbind from container.
  • Fix links to point to Leaflet 1.7.1 docs (PR #889 by zerekw).
react-leaflet - v3.2.0

Published by PaulLeCam over 3 years ago

  • Change unmounting logic for some layers, which should fix issues related to removing or updating elements.
  • Make the style prop of GeoJSON mutable, this prop should be used instead of pathOptions (pathOptions can still be used but should be considered deprecated).
  • Fix documentation about bounds prop being an instance of LatLngBounds.
react-leaflet - v3.1.0

Published by PaulLeCam over 3 years ago

react-leaflet - v3.0.5

Published by PaulLeCam almost 4 years ago

Use useState hook rather than useMemo to store immutable values in MapContainer and Pane.

react-leaflet - v3.0.3/3.0.4

Published by PaulLeCam almost 4 years ago

  • Document pathOptions for GeoJSON (PR #785 by bb)
  • Ensure MapContainer props are immutable
  • Fix TypeScript definition for MapContainer props
  • Update README
Package Rankings
Top 6.68% on Proxy.golang.org
Top 0.56% on Npmjs.org
Top 18.16% on Repo1.maven.org
Top 11.2% on Bower.io
Badges
Extracted from project README
npm version