mapbox-gl-js
mapbox-gl-js copied to clipboard
Style spec validator allows `projection.name = 'globe'` for GL JS `2.6.0`
The styles-spec's sdk-support field only specifies versions for fields, not for values: https://github.com/mapbox/mapbox-gl-js/blob/b13b0aed81d9d552da9cec0f570bdb52b8750137/src/style-spec/reference/v8.json#L4112
This can lead to users unintentionally marking their styles as supported by GL JS 2.6.0, even though globe projection (which is now the default) was not yet supported at that time.
mapbox-gl-js version: 2.9.1
browser: Firefox 101.0.1
Steps to Trigger Behavior
- Login to Studio
- Create a new style (with
globeprojection by default) - (optional) Disable atmosphere to prevent warnings about it
- Switch
Settings -> Supported Mapbox SDK versions -> Mapbox GL JSto2.6.0 - Notice that there are no warnings about
projection(or anything at all, if you removed atmosphere) from GL JS
Expected Behavior
A warning about globe projection is displayed
Actual Behavior
No warning is displayed