Skip to content

Support for mobile zoom gesture double tap + hold + move up/down #1353

@Antje3

Description

@Antje3

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 suggested touchZoom and touchRotate 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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions