You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Random rendered features have mismatched properties #5182
Random features returned by mbgl::Map::queryRenderedFeatures() have mismatched or missing properties.
When the current style is Mapbox Streets (which uses Mapbox Streets source), calling mbgl::Map::queryRenderedFeatures() with the location of this OSM node at z14 returns a point feature in which the scalerank and type are conflated. Here’s the output from MGLPointFeature.attributes:
Querying rendered features at 39°5′43″ north, 84°31′20″ west (in the 13/2172/3128 tile) yields several features in which the layer, oneway, structure, and type properties are all off by one:
{
class = motorway;
layer = true;
oneway = bridge;
structure = motorway;
type = 2;
}
I’m still not sure what’s going on w/ the scalerank key. I’d expect it to be present in the tiles, and this bug uncovered its existence, but the value is missing from both GL JS’s parsed tags and mbgl’s parsed tags with the fix in #5183.
Activity
1ec5 commentedon May 29, 2016
This issue affects all the features in an affected tile, except for rendered symbol features, which appear to be stored in a separate tree.
Here’s
VectorTileLayer::keysMapfor theplace_labeltile layer in the first example above:[core] Store feature keys in same order as in vector tile
1ec5 commentedon May 31, 2016
I’m still not sure what’s going on w/ the
scalerankkey. I’d expect it to be present in the tiles, and this bug uncovered its existence, but the value is missing from both GL JS’s parsed tags and mbgl’s parsed tags with the fix in #5183.