Is the signature of the Marker onClick handler incorrect? #2286
Unanswered
othnielvisky
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The documentation for the Marker component states that the signiture is
(evt: MapEvent)) => void
. But using the Marker, I get a TS error, because the component expects a handler function with this signature:(e: MarkerEvent<MarkerT, MouseEvent>) => void
.I'm importing the component like this:
import { Marker } from 'react-map-gl'
, and I'm running react-map-gl v7.1.3.Is this a bug? Or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions