Skip to content
This repository has been 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

Open
scortumee opened this issue Mar 2, 2022 · 0 comments

Comments

@scortumee
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant