mapbox / mapbox/mapbox-maps-ios

Allow order control (z position) for view annotations

Open
#1,807 1 comment 10 reactions 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

View annotation z order

The order now is controlled with order of adding views. But we should be able to control order of added views that were modified with update closure or added later. It's not convenient or fast to delete all views and add new ones in correct order. Especially when we have to do that on every cameraChange event.

I see that in pull #1607 you are actually internally controlling view order somehow.

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 reviewing the annotation view ordering behavior described here and inspect pull request #1607, which reportedly controls view order internally. Trace how views added later or modified through update closures are ordered, then define and verify a control for z position without requiring views to be deleted and re-added, including during camera changes.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.