diff options
-rw-r--r-- | src/mbgl/text/cross_tile_symbol_index.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mbgl/text/cross_tile_symbol_index.cpp b/src/mbgl/text/cross_tile_symbol_index.cpp index 5597e058ac..d641deefef 100644 --- a/src/mbgl/text/cross_tile_symbol_index.cpp +++ b/src/mbgl/text/cross_tile_symbol_index.cpp @@ -78,6 +78,9 @@ void CrossTileSymbolLayerIndex::addBucket(const OverscaledTileID& coord, SymbolB childIndex.second.findMatches(bucket.symbolInstances, coord); } } + if (z == 0) { + break; + } } // make this tile block duplicate labels in lower-res parent tiles @@ -90,6 +93,9 @@ void CrossTileSymbolLayerIndex::addBucket(const OverscaledTileID& coord, SymbolB parentIndex->second.findMatches(bucket.symbolInstances, coord); } } + if (z == 0) { + break; + } } for (auto& symbolInstance : bucket.symbolInstances) { |