mapbox / mapbox/mapbox-maps-ios

Points in layer gradually disappear on zoom with 3D terrain enabled and source compositing off

Open
#1,969 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

## Environment

- Xcode version: 14.2
- iOS version: 15.6.1
- Devices affected: all
- Maps SDK Version: 10.12.2

## Observed behavior and steps to reproduce

This is something I am seeing in my iOS app, but I can see the same behaviour right in Mapbox Studio. So I'm not sure where I should open the bug...

This is related to bug [1940](https://github.com/mapbox/mapbox-maps-ios/issues/1940), "[OFFLINE DOWNLOADS BROKEN] Layers disappearing instead of being overzoomed if offline tile region/style pack downloaded".

The suggested workaround for bug 1940 is to disable source compositing for the map in Studio. I did this and it solved the problem described in bug 1940. But it introduced a _new_ problem.

Now, as you zoom in on the map (with 3D terrain enabled), the points from the custom layer (from MTS in my case) start to disappear. And it follows an interesting pattern – the points at higher elevations disappear first, then lower ones as you zoom in, and so on.

To reproduce:

1. Create a new style in Studio based on "Outdoors".
2. Turn off source compositing.
3. Turn on 3D terrain.
4. Add the layer from MTS.
5. Zoom in where the layer has data and see the points disappearing in elevation order.

The URL of my (private) style is: mapbox://styles/martinpolley/clhqrru9101xx01pg0b9ca01z

I'm happy to share the access token with you or temporarily make it public so you can see for yourselves.

## Expected behavior

The points that are disappearing should not disappear :)

## Notes / preliminary analysis

## Additional links and references

https://github.com/mapbox/mapbox-maps-ios/assets/432817/8f76f38c-ccb8-458d-82d5-e62d8c3a3ea9

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 in Mapbox Studio using an Outdoors-based style with source compositing off, 3D terrain on, and an MTS layer. Compare the behavior in the iOS app and Studio, then trace the terrain and source-compositing rendering path. Done means the layer's points remain visible while zooming, including those at higher elevations.

Written by the indexing model from the issue text.

Assessment

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