-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Changes from 2 commits
14ace10
ca762e9
1b15616
d4a2308
a460be0
81f9d53
b933528
d81f28c
29c2bf9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -39,7 +39,10 @@ var attrs = module.exports = overrideAll({ | |||||||||||||||||||||||
description: [ | ||||||||||||||||||||||||
'Sets the mapbox access token to be used for this mapbox map.', | ||||||||||||||||||||||||
'Alternatively, the mapbox access token can be set in the', | ||||||||||||||||||||||||
'configuration options under `mapboxAccessToken`.' | ||||||||||||||||||||||||
'configuration options under `mapboxAccessToken`.', | ||||||||||||||||||||||||
'Note that accessToken are only required when `style`', | ||||||||||||||||||||||||
'(e.g with values :', constants.styleValuesMapbox.join(', '), ')', | ||||||||||||||||||||||||
'and/or a layout layer references the Mapbox server.' | ||||||||||||||||||||||||
].join(' ') | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
style: { | ||||||||||||||||||||||||
|
@@ -48,10 +51,17 @@ 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 base map style.', | ||||||||||||||||||||||||
'Base map styles are rendered below all traces and layout layers.', | ||||||||||||||||||||||||
etpinard marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||
'Base map styles can include multiple layers.', | ||||||||||||||||||||||||
'Either input one of the default Mapbox style names: ', constants.styleValuesMapbox.join(', '), '.', | ||||||||||||||||||||||||
'Note that to use these, a Mapbox access token must be set either in the `accesstoken` attribute', | ||||||||||||||||||||||||
'or in the `mapboxAccessToken` config option.', | ||||||||||||||||||||||||
'For 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', | ||||||||||||||||||||||||
etpinard marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||
'https://docs.mapbox.com/mapbox-gl-js/style-spec for more info.' | ||||||||||||||||||||||||
].join(' ') | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
|
@@ -117,7 +127,7 @@ var attrs = module.exports = overrideAll({ | |||||||||||||||||||||||
'Sets the source data for this layer (mapbox.layer.source).', | ||||||||||||||||||||||||
'Source can be either a URL,', | ||||||||||||||||||||||||
'a geojson object (with `sourcetype` set to *geojson*)', | ||||||||||||||||||||||||
'or an array of tile URLS (with `sourcetype` set to *vector*).' | ||||||||||||||||||||||||
'or an array of URLs (with `sourcetype` set to *vector* or *raster*).' | ||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And actually I would leave the word "tile" in there, as it's not super clear what the URL should point to otherwise. We should try to say what the non-array URL should point to also: an image? a GeoJSON file? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now this is: plotly.js/src/plots/mapbox/layout_attributes.js Lines 137 to 142 in 29c2bf9
|
||||||||||||||||||||||||
].join(' ') | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
|
@@ -138,9 +148,11 @@ var attrs = module.exports = overrideAll({ | |||||||||||||||||||||||
role: 'info', | ||||||||||||||||||||||||
description: [ | ||||||||||||||||||||||||
'Sets the layer type (mapbox.layer.type).', | ||||||||||||||||||||||||
'Support for *raster*, *background* types is coming soon.', | ||||||||||||||||||||||||
'Note that *line* and *fill* are not compatible with Point', | ||||||||||||||||||||||||
'GeoJSON geometries.' | ||||||||||||||||||||||||
'With `sourcetype` set to *geojson*, *circle*, *line*, *fill* and *symbol* are available', | ||||||||||||||||||||||||
etpinard marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||
'but note that *line* and *fill* are not compatible with Point', | ||||||||||||||||||||||||
'GeoJSON geometries.', | ||||||||||||||||||||||||
'With `sourcetype` set to *vector*, *circle*, *line*, *fill* and *symbol* are available.', | ||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now this is: plotly.js/src/plots/mapbox/layout_attributes.js Lines 170 to 178 in 29c2bf9
|
||||||||||||||||||||||||
'With `sourcetype` set to *raster* or `*image*`, only the *raster* value is available.' | ||||||||||||||||||||||||
etpinard marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||
].join(' ') | ||||||||||||||||||||||||
}, | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.