react-map-gl
react-map-gl copied to clipboard
onViewportChange not triggered for GeolocationControl
If you click on the GeolocationControl, the map zooms into a certain zoom level. But this change is not reported via onViewportChange. This leads to errorneous behaviour if you click on another control that sets the zoom based on the zoom value stored in the state.
This is similar to #234, but that issue refers to the NavigationControl.
Hi @derwaldgeist
It seems that originalEvent event is missing in GeolocateControl, the same way as in https://github.com/urbica/react-map-gl/issues/234
So that needs to be fixed in the mapbox-gl-js
I saw the issue in mapbox-gl-js has been closed, but is there already a build including this?
The fix is only for NavigationControl, GeolocateControl needs a separate fix
Ok, thanks. I added a not about this to the issue that was mentioned in #234. Do you think that's enough, or shall I try to setup another issue in the mapbox-gl repo?