Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Annotations inappropriately disappear en masse based on zoom #10845

Closed
friedbunny opened this issue Jan 5, 2018 · 7 comments
Closed

Annotations inappropriately disappear en masse based on zoom #10845

friedbunny opened this issue Jan 5, 2018 · 7 comments
Assignees
Labels
annotations Annotations on iOS and macOS or markers on Android bug Core The cross-platform C++ core, aka mbgl iOS Mapbox Maps SDK for iOS release blocker Blocks the next final release

Comments

@friedbunny
Copy link
Contributor

friedbunny commented Jan 5, 2018

On master circa 10a4405 (pre-ios-v4.0.0), zooming in/out of a map with 10,000 sprite annotations can cause virtually every annotation to inappropriately disappear.

  1. Add 10,000 sprite annotations in iosapp.
  2. Zoom several levels in and out — annotations will disappear and then mostly never reappear.

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.

sprites_gonezo
Annotations have gonezo.

/cc @mapbox/gl-core @akitchen @fabian-guerra @lilykaiser

@friedbunny friedbunny added annotations Annotations on iOS and macOS or markers on Android bug Core The cross-platform C++ core, aka mbgl iOS Mapbox Maps SDK for iOS labels Jan 5, 2018
@1ec5 1ec5 added the release blocker Blocks the next final release label Jan 5, 2018
@friedbunny friedbunny added this to the ios-v4.0.0 milestone Jan 5, 2018
@1ec5
Copy link
Contributor

1ec5 commented Jan 5, 2018

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?

@ChrisLoer
Copy link
Contributor

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?

@jfirebaugh
Copy link
Contributor

Symbol annotations use a symbol layer with "icon-allow-overlap": true and "icon-ignore-placement": true.

Another potential culprit is ac32b41.

@ChrisLoer
Copy link
Contributor

I can reproduce this on the commit before ac32b41.

@kkaefer
Copy link
Member

kkaefer commented Jan 9, 2018

I believe ac32b41 isn't at fault here, since I can observe the same behavior in the commit immediately preceding it.

@ChrisLoer ChrisLoer self-assigned this Jan 9, 2018
@ChrisLoer
Copy link
Contributor

Bisected to #10436.

@ChrisLoer
Copy link
Contributor

#10899 appears to fix this (I've tested on macosapp and a simulated iphone 6s so far).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
annotations Annotations on iOS and macOS or markers on Android bug Core The cross-platform C++ core, aka mbgl iOS Mapbox Maps SDK for iOS release blocker Blocks the next final release
Projects
None yet
Development

No branches or pull requests

6 participants