Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

4 questions with no upvoted or accepted answers
2 votes
0 answers
1k views

OpenLayers (or other mapping APIs) + React/Redux: how to keep map object in the store?

I'm trying to figure out how to work with mapping APIs like openlayers, leaflet, mapbox, google maps, etc. and React + Redux. My goal is to make the map object available to all other components of ...
bramb84's user avatar
  • 375
1 vote
0 answers
210 views

Leaflet onEachFeature bringToFront doesn't work as exptected with matching layers

Using React-Leaflet, I have an onEachFeature in which it checks if each layer shares a "group_id" with the currently selected layer and if that is the case, use layer.bringToFront(). My ...
Oliver H. D.'s user avatar
1 vote
0 answers
453 views

React Redux how to load map markers while panning without rerendering everything?

I am using react + redux and react-leaflet v3 + an API to load markers to pin on a map dynamically based on panning behavior. I have it so that "dragend" event is triggered and the map ...
somethingstrang's user avatar
1 vote
2 answers
835 views

Open popup with props state from redux

I'm creating a website with a big main map. I have some markers with popups working when I click on makers. But now, I want to open the popup with an external event. I use redux to maintain the ...
Hugo Delannoy's user avatar