All Questions
12
questions
0
votes
1
answer
481
views
How do you update the mapRef in React-Leaflet V4 when using React-Redux?
I am using react-leaflet version 4.x.
I'm trying to update the zoom level of the map on click of button, just as a simple use case. I realize that you could create a child component to <...
0
votes
1
answer
448
views
how to find my city location with location search in React Redux with Leaflet with OpenStreetMap
I was assigned by my lecturer to add city search to my application using React(Redux) using Leaflet (OpenStreetMap) can anyone help me to solve this problem? and what are the dependencies needed?
Here ...
1
vote
0
answers
452
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 ...
4
votes
2
answers
7k
views
React-leaflet: how to update marker positions?
I can't understand how to update my markers correctly using react-leaflet. Using this example:
import React from 'react';
import { render } from 'react-dom';
import { connect } from 'react-redux';
...
1
vote
0
answers
76
views
Subscribing to a specific part of the store without react-redux
I'm trying to connect a leaflet.js marker popup content to a redux store inside a react component - I want the marker to update directly from the store every time it's data changes.
Each marker ...
0
votes
2
answers
5k
views
Change map position using React Leaflet
I am trying to change the position of the map (change marker). I have (although discouraged to directly manipulate the DOM), attached an event listener to a table and i am getting the right lat & ...
1
vote
1
answer
399
views
Mutable object inside a React/Redux store ( wrapper mapbox)?
Is it possible to store a mutable object in the store redux?
I'm trying to create a wrapper over the external library of the mapbox in my app. I create a map object using the library:
Component - ...
3
votes
1
answer
2k
views
React , leaflet , Converting or Exporting map into an image or in byte64 format
I am using React-leaflet for generating a dynamic map using latitudes and longitudes. Now , i have to show that map in a pptx and in doc file. Is there any way i can export this map as an image or in ...
0
votes
1
answer
2k
views
React-Leaflet-mapping a list of plots to markers
I've got a React Leaflet map, which renders fine.
I've got a list of plots in state, which appear fine (I can see them if I look at the component state.
Each plot has a GeoJSON polygon property.
I'...
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 ...
1
vote
1
answer
526
views
calling redux actions from leaflet map
I have a react/redux application that I've added a leaflet map to. The leaflet map is being populated through geoJSON. Is there a way I can call a redux action through a user click on a map feature? ...
1
vote
2
answers
753
views
Redux for use in mapping applications
I know that redux is great for handling the global state of an application, and when that state is updated to reflect that in the view. However, is it possible to use it on a react component that ...