ViewAnnotations are clipped by an invisible area inside the map viewport

Open
#2,706 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, kotlin
Domain
mobile

Research direction

Start with the linked mapbox-example-android-viewannotation-bug reproduction on Android 16 using Maps SDK 11.22.1, then compare its behavior with the related issue #2681. The work is done when the blue ViewAnnotation remains visible throughout the map viewport rather than being clipped near its midpoint.

Written by the indexing model from the issue text.

Description

bug :beetle:

Environment

  • Android OS version: 16 (API 36)
  • Devices affected: All
  • Maps SDK Version: 11.22.1

Observed behavior and steps to reproduce

The blue box is completely occluded by a vertical area slightly past x=50%.

Expected behavior

The blue box should be visible anywhere in the map viewport.

Notes / preliminary analysis

Please see https://github.com/TruckMap/mapbox-example-android-viewannotation-bug for a reproduction.

This is a duplicate of https://github.com/mapbox/mapbox-maps-android/issues/2681, but I thought including a full repro might give this report more traction.

https://github.com/user-attachments/assets/9f17b573-29bb-49cc-ba51-beb987c22657

Dominant language
Kotlin
Stars
577
Forks
161
PR merge metrics
No merged PRs in 30d

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.

More from mapbox/mapbox-maps-android

All issues in mapbox/mapbox-maps-android

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.