Repository navigation
[core] Prevent symbols at the same zoom from sharing a crossTileID. - #10936
Conversation
feddcad to
a8b86fe
Compare
|
I've updated the PR to include the fix for mapbox/mapbox-gl-js#6002. |
|
I'm not sure what's going on with the 9089 vs 10000 discrepancy, but I saw the same 9089 number testing an old version of the iosapp from before this was introduced. @friedbunny do you think that needs further investigation? I haven't reproduced the crash @friedbunny saw, but I think that's #10778, which we'll address in a separate PR. |
There was a problem hiding this comment.
would it might make sense to move this indexes[tileID.overscaledZ].erase(tileID); up next to where removeBucketCrossTileIDs(tileID.overscaledZ, previousIndex->second); is called?
There was a problem hiding this comment.
Don't we have to leave the tile in the indexes until after we've called findMatches in order to copy the values over? The comment "The old index entries themselves stick around until 'removeStaleBuckets' is called." is misleading though, because in this case they only stick around until the end of addBucket.
Port of GL JS PR #5994. Fixes issue #10844, which would allow multiple symbols in a tile to share the same crossTileID as one of their duplicate parent-tile symbols. Once the symbols shared a crossTileID, they would permanently remain "duplicates" of each other, even after increasing zoom level allowed the CrossTileSymbolIndex to distinguish between them.
a8b86fe to
eac8294
Compare
It’s something to keep an eye on, but yeah, no reason to hold up the rest of these improvements. 🙇 |
Port of GL JS PR mapbox/mapbox-gl-js#5994.
Fixes issue #10844, which would allow multiple symbols in a tile to share the same crossTileID as one of their duplicate parent-tile symbols. Once the symbols shared a crossTileID, they would permanently remain "duplicates" of each other, even after increasing zoom level allowed the CrossTileSymbolIndex to distinguish between them.
I've manually tested this with the reuse queue heads-up display. The behavior with "Add 100 views" is that when you first add them, the "queue" count goes to 100, and then next time the map renders the "visible" count updates to 100. Is that the expected behavior? With "Add 10000 views", it shows 9089, visible -- so definitely progress from the earlier behavior, but I take it we're expecting that to be exactly 10,000?
Also an issue has already been filed against the GL JS version of this PR mapbox/mapbox-gl-js#6002.
/cc @ansis @friedbunny