mapbox / mapbox/mapbox-maps-ios

Improve camera.fly animation smoothness or add an animation curve parameter

Open
#2,022 3 comments 1 reaction 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

Refine the camera.fly method for smoother transitions. The current iOS implementation feels abrupt in comparison to the JS version of Mapbox, which provides a smoother experience by quickly starting and slowly easing into the destination. I would suggest adding an optional animation curve parameter like camera.ease, or by default, refining the existing animation to more closely mirror the JS version.

Solution Suggestions:

  1. Add an animation curve parameter in the camera.fly method.
  2. Modify the default animation to align with the JS version's smoothness.

Why

A smoother transition enhances user experience by reducing visual jarring and ensures consistent behavior across platforms.

Note:
Updates on issue #990 would be appreciated, which also affects the smoothness of the animation.

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 tracing the iOS implementation of camera.fly and compare its transition behavior with the JavaScript Mapbox version; also review issue #990 for related context. Done means the fly transition is measurably smoother and either supports an optional animation curve like camera.ease or matches the proposed default behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev, performance
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.