mapbox / mapbox-gl-style-spec

76 stars 38 forks source link

visibility properties can't be functions #442

Closed jfirebaugh closed 7 years ago

jfirebaugh commented 8 years ago

The documentation advertises that the visibility layout property for any layer type can be a function. As far as I can tell, this isn't true: neither gl-js nor gl-native nor Mapbox Studio support using functions for visibility. Furthermore, the use case for doing so seems marginal:

I think we should revise the documentation to indicate that visibility cannot be a function.