mapbox / mapbox/mapbox-maps-ios

One finger rotate

Open
#2,185 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged feature :green_apple:
Dominant language
Swift
Stars
601
Forks
196
PR merge metrics
No merged PRs in 30d

Description

New Feature

It would be really cool, if when panEnabled=false (disabled panning the map), that rotating the map could somehow be done with one finger (currently requires two fingers in all cases). A property: enableSingleFingerRotateWhenPanDisabled could be added to the GestureOptions model.

Why

This would allow for pokemon-go like Apps to be made using MapBox. Would be insanely cool! And it doesn't seem like a feature that's very difficult to build.
Kind regards :)

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

Start by locating the GestureOptions model and the existing gesture handling that requires two fingers for rotation when panEnabled=false. Trace how that setting affects rotation, then determine where the proposed option belongs. Done means the option enables one-finger rotation only when panning is disabled, while existing gesture behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.