mapbox / mapbox/mapbox-maps-ios

Annotation views animation

Open
#1,146 1 comment 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

It would be really nice to have ability of animating annotation view size and location changes.

## Why

We display some content using annotation views which can partially change over time causing that view to become bigger or smaller.

Currently size change works but without animation

```swift
try? self._mapView.viewAnnotations.update(
existingView,
options: ViewAnnotationOptions(
width: viewSize.width,
height: viewSize.height
)
)
```

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 from the viewAnnotations.update call shown in the issue and trace how annotation view size and location changes are applied. Define the animation behavior for those changes and verify that both resizing and repositioning are animated without breaking existing updates.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.