Skip to main content

All Questions

Tagged with
0 votes
0 answers
41 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
0 answers
20 views

React Leaflet Marker Change Rerenders Every Other Marker Causing Performance Issues

I'm trying to build a quick leaflet map akin to Apartments.com. It's a map with a bunch of markers (up to 2000 in my case) and it will have a sidebar with more in-depth details about the markers that ...
DanDPanda's user avatar
0 votes
1 answer
48 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
125 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
0 votes
0 answers
34 views

GeoJSON component not updating with state

I am having the following problem: although the filteredData is being updated, the Map doesnt reflect it. This is the relevant code for my HOC (which contians the Map component): const ...
GentleCynic's user avatar
0 votes
0 answers
15 views

Deployment error for Importing/exporting DomUtil

Failed to compile ⨯ ./node_modules/@react-leaflet/core/lib/dom.js Attempted import error: 'DomUtil' is not exported from 'leaflet' (imported as 'DomUtil'). This error occurred during the build process ...
elá's user avatar
  • 1
1 vote
2 answers
191 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
0 votes
1 answer
73 views

Hide rest of map around country with leaflet.js in next js

I need help please. I would like to hide the other maps and only show the one of Cameroon. I'm using Leaflet and I'm on Next.js to be able to display the map. I saw this page React-Leaflet 4 with ...
Anthony Tcheuha's user avatar
1 vote
0 answers
387 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
63 views

Next.js React-Leaflet bouncing marker using Leaflet.SmoothMarkerBouncing

I am new to the front-end development, I am trying to get bouncing marker in React-leaflet using https://www.npmjs.com/package/leaflet.smooth_marker_bouncing/v/1.3.0?activeTab=explore But I don't have ...
Dark_shadow_side's user avatar
0 votes
0 answers
61 views

Leaflet Map Rendering Issue with Large Non-Geographical Map

I’m currently developing a non-geographical map for my website using React, tailwindCSS and react-leaflet. The map is square-shaped and quite large, with each side measuring 10 million pixels. The ...
Guy's user avatar
  • 1
0 votes
1 answer
83 views

react-leaflet-heatmap-layer-v3 src directory not found

Trying to use the npm library react-leaflet-heatmap-layer-v3 and after I install it successfully and then yarn start my react typescript app, I get the following warning messages: WARNING in ./...
ArthurJ's user avatar
  • 809
0 votes
0 answers
21 views

React with Leaflet: issue color coding map based on country specific data

Essentially, I would like to be able to click a country and see it's trade partners highlighted on the map. I know that I am reading the data corrrectly from the ISO3, and I am able to print it, I ...
Philip's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
73