mapbox / mapbox/mapbox-maps-ios
One finger rotate
Nobody has claimed this yet.
- 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
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
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