Closed friedbunny closed 6 years ago
Does this issue reproduce only with annotations, or does it also reproduce with symbols in a symbol layer? Collision detection was overhauled in #10436 on master; could that be related?
Collision detection was overhauled in #10436 on master; could that be related?
Yeah, I think so, although I'm not super familiar with how Annotations are implemented -- basically a SymbolAnnotation
should behave like an icon feature, right? @ansis, this makes me think "inappropriate CrossTileSymbolIndex duplicate detection" -- does this ring any bells with the work you're doing right now?
Symbol annotations use a symbol layer with "icon-allow-overlap": true
and "icon-ignore-placement": true
.
Another potential culprit is ac32b41493956e6b03ab13475f27a4dcd64355ae.
I can reproduce this on the commit before https://github.com/mapbox/mapbox-gl-native/commit/ac32b41493956e6b03ab13475f27a4dcd64355ae.
I believe https://github.com/mapbox/mapbox-gl-native/commit/ac32b41493956e6b03ab13475f27a4dcd64355ae isn't at fault here, since I can observe the same behavior in the commit immediately preceding it.
Bisected to #10436.
https://github.com/mapbox/mapbox-gl-native/pull/10899 appears to fix this (I've tested on macosapp and a simulated iphone 6s so far).
On
master
circa 10a44050f485a18f8dd6523aca6a7a9f82f7afc7 (pre-ios-v4.0.0), zooming in/out of a map with 10,000 sprite annotations can cause virtually every annotation to inappropriately disappear.Check out this video for a demonstration.
If you quickly zoom in to ~z11 and then out to ~z4, it’s possible to have a single annotation remaining (out of the 10k that should be visible). In general, this appears to be happening within individual tiles.
Annotations have gonezo.
/cc @mapbox/gl-core @akitchen @fabian-guerra @lilykaiser