mapbox / mapbox/mapbox-maps-ios

Linear easing option on `LocationIndicatorLayer`

Open
#1,965 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

It appears that LocationIndicatorLayer requires locationTransition to be an instance of StyleTransition, which only has the properties duration and delay. Setting a non-zero duration makes the indicator move with what appears to be in/out easing. Is there any way to change this to linear interpolation?

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 LocationIndicatorLayer and its locationTransition handling, then inspect StyleTransition to understand the available duration and delay behavior. Reproduce the current non-zero-duration motion and determine how a linear interpolation option should be exposed. Done means the indicator can use linear interpolation and the behavior is covered by the relevant tests.

Written by the indexing model from the issue text.

Assessment

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