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
I am looking for a way to support the mobile zoom gesture where you double tap on the map, hold, and move up or down to zoom. Mapbox GL itself supports this (touchZoomRotate in the Map Parameter Options).
I tried setting the value for the InteractiveMap via the mapOptions, but this did not work: mapOptions={{ touchZoomRotate: true }}.
As far as I could find, you implement all zooming yourselves, so setting it via the mapOptions probably gets overwritten?
I am looking for a way to support the mobile zoom gesture where you double tap on the map, hold, and move up or down to zoom. Mapbox GL itself supports this (
touchZoomRotate
in the Map Parameter Options).I tried setting the value for the InteractiveMap via the mapOptions, but this did not work:
mapOptions={{ touchZoomRotate: true }}
.As far as I could find, you implement all zooming yourselves, so setting it via the mapOptions probably gets overwritten?
I also saw a deprecation warning for
touchZoomRotate
, but the suggestedtouchZoom
andtouchRotate
do not provide the required zoom gesture.Am I overlooking something, and if not, do you plan to support this feature in the future? Thanks!
The text was updated successfully, but these errors were encountered: