mapbox / mapbox/mapbox-maps-ios
Linear easing option on `LocationIndicatorLayer`
Nobody has claimed this yet.
- 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
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 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