Skip to main content

All Questions

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
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
0 votes
1 answer
67 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
87 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
1 answer
59 views

Window not defined on build NextJS

I am getting a window not defined error? I do not call window or document anywhere in the code and it works fine in development just errors on build. ReferenceError: window is not defined at C:\...
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
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
0 votes
3 answers
141 views

Smooth scroll with react-leaflet

I'm trying to create a smooth zoom in my react-leaflet project. I know that this is doable with vanilla leaflet as said in this post, with smoothWheelZoom, but knowing that vanilla leaflet does not ...
Horkos's user avatar
  • 331
0 votes
1 answer
116 views

want to show pin on leaflet map using react js

I am trying to create a map using React JS and a leaflet but the problem is I am not able to map position on the map here is my code import React, { useState } from 'react'; import { MapContainer, ...
Shiv's user avatar
  • 23
0 votes
0 answers
109 views

React Leaflet map not Re-rendering

I'm encountering an issue with my React application where the Leaflet map component is not re-rendering even though the data it depends on has changed. Here's the structure of my code: App.js let [...
New's user avatar
  • 11
0 votes
0 answers
46 views

Error Adding Marker Clusters & County Boundaries to Leaflet Map

I am able to add all state boundaries to my leaflet map. But if I try to add clusters I am getting the below error. Error in /~/components/MapBoundaries.tsx (138:34) map is not defined Can you let me ...
Ram01's user avatar
  • 171
0 votes
0 answers
35 views

How to wrap the VideoOverlay component in react-leaflet with a div?

I'm currently working on integrating a video overlay onto a map using the react-leaflet library. I'm using the VideoOverlay component provided by react-leaflet to render the video onto the map ...
dina's user avatar
  • 1,052
0 votes
1 answer
106 views

Auto pan and update map position when data inside Popup changes

I have some dynamic data inside <Popup> that will change the Popup box size after opening. When you first click on the <Marker> it will update the content, position and adjust the pan of ...
newcool's user avatar
  • 321
0 votes
1 answer
106 views

React Leaflet Material UI divIcon not styled

In React Leaflet, I am trying to use divIcon to render a custom Material UI marker that takes in a background color prop. However, when the marker is used in leaflet, the background style is not ...
pomipiwimo's user avatar

15 30 50 per page
1
2 3 4 5
35