Design an expression constraint or form that allows for statically determining all possible output values. #5393
Labels
cross-platform 📺
Requires coordination with Mapbox GL Native (style specification, rendering tests, etc.)
It seems that we need to be able to determine statically (i.e., without access to feature data) what all the possible output values are for some expressions:
text-font
- needed because "One of the components of an offline region download is the complete set of glyph range PBFs for all the font stacks used by that region's style"icon-image
- per chat with @ian29 @aparlato, "we need to know all the icon names referenced by a style in order to check that the icons exist"In order to do this, we need a way to define an enforceable constraint on expressions that guarantees that guarantees that its possible output values is a subset of the set of string literals used in the expression. (Theoretically possible for the guarantee to be looser, but this is probably good enough.)
The text was updated successfully, but these errors were encountered: