Skip to main content

All Questions

0 votes
1 answer
17 views

React-Leaflet how to make circle change size relative to zoom

In React-Leaflet I put a L.circleMarker in some coordinate and and gave it some radius. when I zoom in the radius size shrinks, but I want it to grow bigger. for example if I drew a circle around New-...
LIOR AVIV's user avatar
0 votes
0 answers
47 views

How can I improve React Leaflet performance when rapidly updating a marker position?

I'm working on a page which reads GPX files (a series of lat/lon GPS points) and plots the route using React Leaflet as well as showing an elevation profile using react-chartjs-2. When hovering over ...
user7290573's user avatar
  • 1,330
0 votes
0 answers
32 views

How to get rid of React Leaftlet map gray area while scrolling vertically

Hey guys I have use React Leafnet in my web app, everything seems working fine when I scroll map horizontally it loads new map images nicely but when I scroll map vertically, than after some position ...
nehat khan's user avatar
0 votes
0 answers
30 views

How to dynamically use fallback tiles from the previous zoom level of the same server in Leaflet?

I'm working on a mapping application using React with Leaflet for tile rendering. When tiles fail to load (due to network issues, server downtime, tiles not available), I want to dynamically use ...
Shrutika Maske's user avatar
0 votes
1 answer
50 views

Leaftlet divIcon with clickable button

I'm working on leaflet and I wanted to add click event for a icon in the custom divIcon as below, If user clicks on the edit(pencile) icon then click event should trigger, Here is the code I'm ...
Kishor's user avatar
  • 200
0 votes
1 answer
128 views

React Leaflet map resizing issues

While using react-leaflet to create a map, I would like the map component to take over all the available space after header and footer. The code seems to work. However, when the resize handler is ...
obvdso's user avatar
  • 92
1 vote
2 answers
192 views

React Leaflet markers not rendering with location data fetched from an API using useEffect

I am trying to render leaflet markers using React Leaflet with data fetched from an API using useEffect. The markers are not showing up despite the location data being non-null at the time of ...
fault's user avatar
  • 53
1 vote
0 answers
391 views

React leaflet. map is not showing

I have been trying to create a map section in my website for at least an hour now, but the react-leaflet or leaflet just won't work at all. I do every step that the doc says, I have watched a lot of ...
Zeynalli Zeynal's user avatar
0 votes
1 answer
106 views

Getting the clicked marker in react leaflet

So I have my leaflet map in my react project, I have markers on this map and I want to get the marker clicked. I want to show this markers popUp info on a side panel. How would I get the marker ...
canadianbleach's user avatar
0 votes
0 answers
80 views

How to manage rendering 30000 polygons on map using react-leaflet?

Im using react-leaflet to render heatmap using big amount of polygons that I get from database. Polygons are preconfigured and I don't perform any actions on them. My issue is that when user wants to ...
BranTheBroken's user avatar
0 votes
0 answers
18 views

how to do autosave on editvertex ? because i dont want user to save all the time when he/she edits

Just want to save the polygons even after not saving it , and i have hided the save and cancel button. Im already rendering the polygons using my own state and im changing it on every vertex change ...
Anzil Az's user avatar
0 votes
1 answer
72 views

changing cluster's styles not working with lazy loading leaflet in SSR react application

I'm encountering some challenges with lazy loading a Leaflet map in a React application deployed on a server-side rendering (SSR) environment. The application involves loading a list of products in a ...
Ehsan Zand's user avatar
0 votes
1 answer
100 views

React-leaflet flyto new position

I have a rather large application based on react and leaflet. The problem is that I can't get the main map of the code to move to a new location, provided by the user in an input menu, when the menu ...
Raxxoht's user avatar
  • 19
2 votes
1 answer
308 views

How to add react-leaflet map to remixjs app

I'm trying to add a react-leaflet map to a remix app. I created a simple app using the npx create-remix@latest command. I then added react-leaflet using the installation instructions. Now I have ...
jack.benson's user avatar
  • 2,333
1 vote
0 answers
28 views

How do I create a "double" line feature from GeoJSON data with React-Leaflet

I am using React Leaflet to plot a GeoJSON file with several LineString features. I can plot and style them using <GeoJSON data={lines} style={onEachLineFeatureStyle}/> where the ...
jfowkes's user avatar
  • 1,565

15 30 50 per page
1
2 3 4 5
51