python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Testing react-leaflet marker click event triggers `Error: Invalid LatLng object: (NaN, NaN)`
I want to test click events on a react-leaftlet marker. I'm using jest alongside testing-library for the tests.
"react-leaflet": "^3.2.1"
"@testing-library/jest-dom": &qu...

fabrizzio_gz
Votes: 0
Answers: 0
React hooks cause unintentional re-render
I am working with a React + Leaflet map and noticing the map container / elements re-render any time I show or close a modal.
I have created a sandbox to demonstrate the problem, but this occurs in ot...
demongman
Votes: 0
Answers: 1
Check if Dialog is already open
I'm working on application where I'm displaying a map & multiple different locations with markers. These markers can be clicked in order to open simple dialog, which shows some information about t...
aksoco
Votes: 0
Answers: 1
Property 'context' is missing in type '{ instance: any; }' but required in type 'LeafletElement<Evented, any>'
I'm trying to execute this react-leaflet example: https://react-leaflet.js.org/docs/example-react-control/
This is the code:
import * as React from 'react';
import * as leaflet from 'leaflet'
impor...
Raphael10
Votes: 0
Answers: 1