Description
React Leaflet is a set of React components for building Leaflet maps. Its site shows a live editor and a short example that places a MapContainer at a set centre and zoom level, with a TileLayer that loads OpenStreetMap tiles and an attribution. You build a map by nesting components inside MapContainer,. The site has sections for getting started, examples and the API, and a version switcher for v5.x, v4.x and v3.x. The source is on GitHub under PaulLeCam, where the code and issue tracker are kept. Because the components wrap Leaflet, they are for React developers who want to show interactive maps, markers and tiles in a React app without managing the Leaflet map object by hand. The site does not state a licence or pricing on its home page.…
Highlights
- React components for Leaflet maps
- MapContainer with centre and zoom
- TileLayer for OpenStreetMap and other tiles
- Live editor on the site
- Docs for v5.x, v4.x and v3.x
Ratings & Reviews
No ratings yet
Be the first to rate react-leaflet.
People also visit
react-leaflet FAQ
What is React Leaflet?
It is a set of React components for building Leaflet maps inside a React app.
How do I add a map?
Place a MapContainer with a centre and zoom level, then add a TileLayer for the map tiles, as shown in the getting started guide and the live editor.
Which versions are documented?
The site has documentation for v5.x, v4.x and v3.x.
Where is the source?
The project is on GitHub under PaulLeCam/react-leaflet.
What are the best react-leaflet alternatives?
Popular alternatives to react-leaflet include react-leaflet, react-mapbox-gl and react-google-maps. See all react-leaflet alternatives


















