Skip to content

Improve mapbox.style description + use mapbox-gl v1.1.1 #4035

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 23, 2019
14 changes: 10 additions & 4 deletions src/plots/mapbox/layout_attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,16 @@ var attrs = module.exports = overrideAll({
dflt: constants.styleValueDflt,
role: 'style',
description: [
'Sets the Mapbox map style.',
'Either input one of the default Mapbox style names or the URL to a custom style',
'or a valid Mapbox style JSON.',
'From OpenStreetMap raster tiles, use *open-street-map*.'
'Sets the Mapbox base map style.',
'Base map styles are rendered below all traces and layout layers.',
'Either input one of the default Mapbox style names:', constants.styleValuesMapbox, '.',
'Note that to use these, a Mapbox access token must be set either in the `accesstoken` attribute',
'or in the `mapboxAccessToken` config option.',
'From OpenStreetMap raster tiles, use:', constants.styleValueOSM, '.',
'No access token is required to render the', constants.styleValueOSM, 'style.',
'One can also set `style` as a URL to a Mapbox custom style, e.g. created in Mapbox Studio.',
'Finally, one can set `style` as a Mapbox style JSON, see',
'https://docs.mapbox.com/mapbox-gl-js/style-spec for more info.'
].join(' ')
},

Expand Down