The current implementation just returns "0":
|
queryRadius(): number { |
|
return 0; |
|
} |
This means that symbols that "bleed over" into the tile next to them won't show up in a queryRenderedFeatures query that intersects their geometry but doesn't intersect their original tile. This wasn't much of an issue before #5150 because the symbol would generally be included in both tile's collision indices.
Once #6036 goes in, we'll have an upper bound on the amount of "pitch scaling" that can apply to text. We can implement queryRadius here by going through all the symbols in the bucket and keeping the max dimensions.
/cc @ansis
The current implementation just returns "0":
mapbox-gl-js/src/style/style_layer/symbol_style_layer.js
Lines 76 to 78 in 31d92db
This means that symbols that "bleed over" into the tile next to them won't show up in a
queryRenderedFeaturesquery that intersects their geometry but doesn't intersect their original tile. This wasn't much of an issue before #5150 because the symbol would generally be included in both tile's collision indices.Once #6036 goes in, we'll have an upper bound on the amount of "pitch scaling" that can apply to text. We can implement
queryRadiushere by going through all the symbols in the bucket and keeping the max dimensions./cc @ansis