mapbox / mapbox/mapbox-maps-ios
Is there a way to prevent the user from offsetting the camera from the center of the view?
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
Hello everyone,
First, I would like to thank you for this great tool.
I would like to prevent the user from offsetting the camera, with letting him the ability to rotate or zoom/unzoom the camera - actually, I would like to achieve the same behaviour than in Pokemon Go.
I searched for this on StackOverflow and found this thread, but it doesn't seem still valid. I couldn't find the MGLMapView class or the shouldChangeFrom: to: delegate method.
Could you give me some help about this?
Thank you very much.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests; start by reviewing the current camera interaction APIs and documentation corresponding to MGLMapView and the shouldChangeFrom: to: delegate method. Determine whether centering while retaining rotation and zoom is currently supported, and document the applicable approach or the missing capability.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100