All Questions
408
questions with no upvoted or accepted answers
1
vote
0
answers
36
views
Interacting with leaflet popup containing React components
I am trying to interact with a popup in Leaflet. However, when I try to click the CustomButton inside of the popup, nothing happens, it wont even console log.
const popupContent = (
<div>
...
1
vote
0
answers
117
views
How to apply style on PolylineDecorator
I'm working on project to show the history of GPS device. For every few seconds, location of GPS devices are sent to our SQL server and currently I can use these data and show on map.
function ...
1
vote
0
answers
54
views
React-leaflet LeafletTrackingMarker does not work when it's under MarkerCLusterGroup
how to move smooth markers from old coordinate to new coordinate in MarkerCLusterGroup
i have a code in reactjs that works perfectly for LeafletTrackingMarker
lets assume that i have 10 position , ...
1
vote
0
answers
114
views
Implement rotate on react-leaflet rectangles
My goal is to make the rectangles on the leaflet map rotate. This map is for a concert with a lot of seats and some of them will need to rotated to fit the map photo.
After a lot of research i found ...
1
vote
0
answers
444
views
How to integrate address search into a React Leaflet map?
Question
I'm trying to create a React application using Leaflet, and I want to add a search bar that allows users to search for addresses. I've already tried some libraries like react-leaflet-search ...
1
vote
1
answer
121
views
Unexpected token (10:25) in react-leaflet videoOverlay file during webpack build
Failed to compile
./node_modules/react-leaflet/lib/VideoOverlay.js 10:25
Module parse failed: Unexpected token (10:25)
You may need an appropriate loader to handle this file type.
| var overlay = ...
1
vote
1
answer
463
views
How to render GeoJSON from a nodejs API in react-leaflet?
I am new to developing, this is only my third or fourth project. I'm experimenting with react-leaflet in combination with a node/express API that serves a GeoJSON object from a PostGIS db. I can't get ...
1
vote
0
answers
328
views
How to create city boundaries using bbox data in React Leaflet?
I'm working on a React application that uses Leaflet and react-leaflet to display a map.
I want to create boundaries around cities that are marked on the map with a marker. To get the necessary ...
1
vote
3
answers
140
views
How to avoid infinite loops inside useEffect working with dispatch()?
I'm making a project where I have a list with several properties. Each property has data such as name, latitude, longitute, among others.
On one side of the screen I render the list showing the ...
1
vote
0
answers
146
views
React leaflet draw causes no context provider error
I'm running into some major compatibility issues it seems. I am getting this error when I am directed to a page with a map that is meant for the user to draw a radius using react-leaflet-draw. Here is ...
1
vote
2
answers
255
views
Map isn't showing up using react-leaflet, but not logging any errors
The code is running perfectly after 5 hours of not getting my dashboard to show up, however now the map just isnt showing up and when i check the console i get no error, any thoughts? I followed the ...
1
vote
2
answers
861
views
Triggering Geoman event with custom button
In my React app, I'm using Geoman on a Leaflet map with several Geoman tools. Currently, I have an event listener that verify which tool is used and chose the right function to fire when the user has ...
1
vote
1
answer
597
views
react-leaflet throwing errors under nextjs13
I am trying to get a Leaflet map running under the new NextJS13 thinking with the distinctly declared client-side functions it should save me some trouble. But i cant get it to work. my map component ...
1
vote
1
answer
319
views
react-leaflet error when quickly mounting and unmounting map
I notice that when very quickly mount and unmount my leaflet map I run into the following error:
TypeError: el is undefined
244 | // this method is only used for elements previously positioned ...
1
vote
0
answers
271
views
You may need an appropriate loader to handle this file type in react project
I have a react project. when I want to use react-leaflet I get this error:
./node_modules/react-leaflet/lib/VideoOverlay.js 10:25
Module parse failed: Unexpected token (10:25)
You may need an ...