Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

How to keep camera locked at the center of the map while using pinch(scale) gesture #648

@scortumee

Description

@scortumee

Steps to reproduce

  1. Render Mapview on any physical device
  2. Pinch in/out (scale) on the map using your fingers

Expected behavior

When I pass an argument something like touchZoomRotate: {around: "center"}
the camera should be locked at the center of the map.

I don't know if this feature is implemented or not on ios.
Looks like on a web side, it is implemented. Please check out mapbox/mapbox-gl-js#3876

Below is what I am trying to achieve

RPReplay_Final1646159022.MP4

Actual behavior

The camera zooms in/out depending on the position of your fingers

Configuration

Mapbox SDK versions: 6.3.0
iOS/macOS versions: iOS 15.1
Device/simulator models: iPhone 8
Xcode version: 13.1 (13A1030d)

by the way I am using flutter and https://github.com/flutter-mapbox-gl/maps package

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