mapbox / mapbox/mapbox-maps-ios

View annotations disappear with some camera states

Open
#2,149 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

## Environment

- Xcode version: 15.3
- iOS version: 17.4
- Devices affected: iPhone 15 Pro
- Maps SDK Version: 11.2.0

## Observed behavior and steps to reproduce

In our app we show map pins as view annotations because we want to animate our pins. In tilted map view (pitch > 0) there seems to be bug that with some map rotations view annotations get hidden.

https://github.com/mapbox/mapbox-maps-ios/assets/2304597/5bfd825e-1e81-4fa5-84cf-63cb597a47c2

## Expected behavior

View annotations should be visible when they are in the camera frustum.

## Notes / preliminary analysis

As I understand view annotations are not drawn when they are offscreen. Maybe problem is that camera transformation doesn't correctly project visible area.

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 reproducing the issue on an iPhone 15 Pro with Xcode 15.3, iOS 17.4, and Maps SDK 11.2.0 using a pitched map and varying camera rotations. Investigate view-annotation offscreen checks and camera-frustum projection; done means annotations remain visible whenever they are inside the camera frustum.

Written by the indexing model from the issue text.

Assessment

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