mapbox / mapbox-gl-style-spec

76 stars 38 forks source link

Validator should check for attempts to use {interpolation} syntax in DDS properties #664

Closed jfirebaugh closed 7 years ago

jfirebaugh commented 7 years ago

Style validation should check for attempts to use "{interpolation}" syntax in properties that aren't text-field or icon-image, and output an error message that provides the correct use of a data-driven property.

E.g. if the validator sees "icon-rotate": "{rotation}", the error message could be: "The icon-rotate property does not support string interpolation syntax. Use a property function instead: "icon-rotate": { "type": "identity", "property": "rotation" }.

cc @geografa