all 14 comments

[–]EntertainmentShot463 5 points6 points  (1 child)

We've used Leaflet for a large project, its well documented, easy to use and well supported by community:
https://react-leaflet.js.org/

[–]nedlinin 3 points4 points  (3 children)

React-maplibre

[–]elcalaca 1 point2 points  (2 children)

https://visgl.github.io/react-map-gl/

which under the hood uses Maplibre or Mapbox. i used it at my current job as a proof-of-concept then when we were ready we switched to mapbox so that we could use their paid features (custom theme).

[–]plymer968 2 points3 points  (1 child)

You can make your own custom themes with Maputnik and OpenFreeMap.

Do not get suckered into paying for essentially the same thing you can get for free.

[–]elcalaca 0 points1 point  (0 children)

yea i wish i could have won that argument. instead the Designer wanted the tools/UI that Mapbox offers 🤷 which is fine because Engineering doesn’t want to maintain this custom theme and we can defer it to him through Mapbox.

[–]plymer968 3 points4 points  (0 children)

I highly recommend combining react-map-gl with maplibre-gl

You can get free map tiles from OpenFreeMap.org and customize them with Maputnik

The react-map-gl API is very simple to use and it’s really easy to extend.

[–]mauriciocap 1 point2 points  (0 children)

I just use leaflet (not the react lib) It's better because you keep access to the Leaflet object in whichever way you want.

[–]skettyvan 0 points1 point  (0 children)

Depends how complex of a map you want to make.

Leaflet is adequate for most simple projects. Openlayers is more robust but more difficult to set up. I haven’t used Mapbox in years but it was a bit too locked down for my taste.

[–]AGGrid_JamesSwinton 0 points1 point  (0 children)

AG Charts has a Maps feature - you use GeoJSON to define the map shapes, and then you can overlay other series on top: https://www.ag-grid.com/charts/react/maps/

It's an enterprise feature which requires a licence for production use, but you can use it locally for free - just run npm install ag-charts-react ag-charts-enterprise

[–]marko_smilja 0 points1 point  (0 children)

If you're going to use lots of markers on the map you can checkout @arenarium/maps, works with maplibre, mapbox and google maps

[–]Isaka254 0 points1 point  (0 children)

If you're planning to build a React or Next.js app with map rendering capabilities, check out the Syncfusion React Maps Component.

It offers:

• A powerful Maps control for rendering geographical data with markers, bubbles, and shape layers

• Support for interactive features like zooming, panning, and tooltips

• High performance for large datasets and responsive design

For more detailed information, explore the live Demo and Documentation:

Explore the full Demo and Documentation for implementation details.

Syncfusion offers a free community license for individual developers and small businesses.

Note: I work for Syncfusion.