mirror of
https://github.com/visgl/react-map-gl.git
synced 2025-12-08 20:16:02 +00:00
466 B
466 B
Using with Redux
If you're using redux, it is very easy to hook this component up to store state in the redux state tree.
The simplest way is to take all properties passed to the onViewportChange function property and add them
directly into the store. This state can then be passed back to the <ReactMapGL> component without any transformation.
You can even use the package redux-map-gl to save you some writing.