mapbox / mapbox/mapbox-maps-ios

Is there a way to prevent the user from offsetting the camera from the center of the view?

Open
#1,935 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged question
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.