-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling Events in Custom MapController #669
Comments
Can you make sure that |
I am having the same problem. Seems that having an arrow function inside of a parent class does not allow children to use I think |
@guisers I had tried implementing |
Yes, what I mean is that the parent class MapController in react-map-gl needs this change. There doesn't appear to be anything we can do 😬 |
Fix is published in 4.0.5 |
I'm trying to work with the MapController component to construct a DrawControl as described in #450 (comment), but using the updated API in v4
My simple controller looks like this:
HandleEvent is called but the final line returns an error when returning to the parent handleEvent function
The text was updated successfully, but these errors were encountered: