pass SourceInfo object to TileData so that we can not skip buckets that appear later than the source maxzoom
This commit is contained in:
@@ -109,9 +109,8 @@ std::unique_ptr<Bucket> TileParser::createBucket(std::shared_ptr<StyleBucket> bu
|
||||
}
|
||||
|
||||
// Skip this bucket if we are to not render this
|
||||
if (tile.id.z < bucket_desc->min_zoom || tile.id.z > bucket_desc->max_zoom) {
|
||||
return nullptr;
|
||||
}
|
||||
if (tile.id.z < bucket_desc->min_zoom && bucket_desc->min_zoom < tile.source.max_zoom) return nullptr;
|
||||
if (tile.id.z >= bucket_desc->max_zoom) return nullptr;
|
||||
|
||||
auto layer_it = vector_data.layers.find(bucket_desc->source_layer);
|
||||
if (layer_it != vector_data.layers.end()) {
|
||||
|
||||
Reference in New Issue
Block a user