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
map.featuresAt() currently returns all layers for that point, even if they are not visible because of collisions. We should either not return hidden layers for those points or return with a visible: false key.
Agreed. I think the default should be to omit hidden features, with an option to include them. Having the visibility available as a property on the resulting features is also a good idea.
+1 to a configurable option. having a featuresAt that matches visibility is useful when building interactivity with map elements. but when you're using the map as an interface to access the underlying dataset, retrieving the full data is useful
featuresAt is replaced by queryRenderedFeatures and querySourceFeatures. queryRenderedFeatures only returns visible features. Symbols hidden because of collisions are not returned. querySourceFeatures can be used to get features independent of styling. I don't think we need an option for including hidden features right now.
Activity
jfirebaugh commentedon Dec 2, 2015
Agreed. I think the default should be to omit hidden features, with an option to include them. Having the visibility available as a property on the resulting features is also a good idea.
mcwhittemore commentedon Dec 2, 2015
Hidden features might be a thing people are using currently (intentionally or not) so providing the hidden attribute is the safest bet.
steinbachr commentedon Jan 15, 2016
+1
peterqliu commentedon Feb 9, 2016
+1 to a configurable option. having a
featuresAtthat matches visibility is useful when building interactivity with map elements. but when you're using the map as an interface to access the underlying dataset, retrieving the full data is usefulmusicformellons commentedon Feb 10, 2016
+1
ansis commentedon Mar 24, 2016
featuresAtis replaced byqueryRenderedFeaturesandquerySourceFeatures.queryRenderedFeaturesonly returns visible features. Symbols hidden because of collisions are not returned.querySourceFeaturescan be used to get features independent of styling. I don't think we need an option for including hidden features right now.fix regression on door lights: render when no shadows (#582)