mapbox-maps-ios icon indicating copy to clipboard operation
mapbox-maps-ios copied to clipboard

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

Open martinpolley opened this issue 2 years ago • 4 comments

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, "[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

martinpolley avatar May 27 '23 19:05 martinpolley

Thanks for the report, our team is looking into it.

baleboy avatar Jun 01 '23 15:06 baleboy

@martinpolley Could you please tell whether green points are Circle layers?

alexshalamov avatar Jun 01 '23 15:06 alexshalamov

@alexshalamov Yes, they are circle layers.

martinpolley avatar Jun 01 '23 15:06 martinpolley

Hey @alexshalamov & @baleboy,

Any updates on this? I assume this is NOT an iOS-specific issue, so should an issue be opened for a different team?

Thanks, Martin

martinpolley avatar Aug 03 '23 13:08 martinpolley