You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After activating geolocation via the GeolocateControl component, the map stops being able to be panned. It does not respond to touch or mouse events. Markers are still interactable, and the pointer still displays the interaction cursor (the hand)
Repro Steps
Open the map
Click / tap on the GeolocateControl
Wait for geolocation
After a position has been tracked, the viewport will sometimes move to the tracked location, sometimes not. Either way, the user can no longer change the viewport of the map, neither by dragging nor by pinch-to-zoom
Thanks for reporting. GeolocateControl triggers onViewportChange callback with an extra nextViewport.onViewportChange field which overrides your own callback. Before a fix is published you can work around this by swapping the order of your props assignment ({...viewport} {...props}).
Description
After activating geolocation via the GeolocateControl component, the map stops being able to be panned. It does not respond to touch or mouse events. Markers are still interactable, and the pointer still displays the interaction cursor (the hand)
Repro Steps
Here's a repository that presents the issue:
https://github.com/brandolori/react-map-gl-repro
Environment (please complete the following information):
Logs
No relevant errors or warnings in the console.
The text was updated successfully, but these errors were encountered: