@@ -39,7 +39,10 @@ var attrs = module.exports = overrideAll({
39
39
description : [
40
40
'Sets the mapbox access token to be used for this mapbox map.' ,
41
41
'Alternatively, the mapbox access token can be set in the' ,
42
- 'configuration options under `mapboxAccessToken`.'
42
+ 'configuration options under `mapboxAccessToken`.' ,
43
+ 'Note that accessToken are only required when `style`' ,
44
+ '(e.g with values :' , constants . styleValuesMapbox . join ( ', ' ) , ')' ,
45
+ 'and/or a layout layer references the Mapbox server.'
43
46
] . join ( ' ' )
44
47
} ,
45
48
style : {
@@ -48,12 +51,13 @@ var attrs = module.exports = overrideAll({
48
51
dflt : constants . styleValueDflt ,
49
52
role : 'style' ,
50
53
description : [
51
- 'Sets the Mapbox base map style.' ,
54
+ 'Sets the base map style.' ,
52
55
'Base map styles are rendered below all traces and layout layers.' ,
53
- 'Either input one of the default Mapbox style names:' , constants . styleValuesMapbox , '.' ,
56
+ 'Base map styles can include multiple layers.' ,
57
+ 'Either input one of the default Mapbox style names: ' , constants . styleValuesMapbox . join ( ', ' ) , '.' ,
54
58
'Note that to use these, a Mapbox access token must be set either in the `accesstoken` attribute' ,
55
59
'or in the `mapboxAccessToken` config option.' ,
56
- 'From OpenStreetMap raster tiles, use:' , constants . styleValueOSM , '.' ,
60
+ 'For OpenStreetMap raster tiles, use: ' , constants . styleValueOSM , '.' ,
57
61
'No access token is required to render the' , constants . styleValueOSM , 'style.' ,
58
62
'One can also set `style` as a URL to a Mapbox custom style, e.g. created in Mapbox Studio.' ,
59
63
'Finally, one can set `style` as a Mapbox style JSON, see' ,
@@ -123,7 +127,7 @@ var attrs = module.exports = overrideAll({
123
127
'Sets the source data for this layer (mapbox.layer.source).' ,
124
128
'Source can be either a URL,' ,
125
129
'a geojson object (with `sourcetype` set to *geojson*)' ,
126
- 'or an array of tile URLS (with `sourcetype` set to *vector*).'
130
+ 'or an array of URLs (with `sourcetype` set to *vector* or *raster *).'
127
131
] . join ( ' ' )
128
132
} ,
129
133
@@ -144,9 +148,11 @@ var attrs = module.exports = overrideAll({
144
148
role : 'info' ,
145
149
description : [
146
150
'Sets the layer type (mapbox.layer.type).' ,
147
- 'Support for *raster*, *background* types is coming soon.' ,
148
- 'Note that *line* and *fill* are not compatible with Point' ,
149
- 'GeoJSON geometries.'
151
+ 'With `sourcetype` set to *geojson*, *circle*, *line*, *fill* and *symbol* are available' ,
152
+ 'but note that *line* and *fill* are not compatible with Point' ,
153
+ 'GeoJSON geometries.' ,
154
+ 'With `sourcetype` set to *vector*, *circle*, *line*, *fill* and *symbol* are available.' ,
155
+ 'With `sourcetype` set to *raster* or `*image*`, only the *raster* value is available.'
150
156
] . join ( ' ' )
151
157
} ,
152
158
0 commit comments