@@ -19,7 +19,7 @@ var templatedArray = require('../../plot_api/plot_template').templatedArray;
1919
2020var fontAttr = fontAttrs ( {
2121 description : [
22- 'Sets the icon text font.' ,
22+ 'Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size) .' ,
2323 'Has an effect only when `type` is set to *symbol*.'
2424 ] . join ( ' ' )
2525} ) ;
@@ -71,21 +71,21 @@ var attrs = module.exports = overrideAll({
7171 valType : 'number' ,
7272 dflt : 1 ,
7373 role : 'info' ,
74- description : 'Sets the zoom level of the map.'
74+ description : 'Sets the zoom level of the map (mapbox.zoom) .'
7575 } ,
7676 bearing : {
7777 valType : 'number' ,
7878 dflt : 0 ,
7979 role : 'info' ,
80- description : 'Sets the bearing angle of the map ( in degrees counter-clockwise from North).'
80+ description : 'Sets the bearing angle of the map in degrees counter-clockwise from North (mapbox.bearing ).'
8181 } ,
8282 pitch : {
8383 valType : 'number' ,
8484 dflt : 0 ,
8585 role : 'info' ,
8686 description : [
8787 'Sets the pitch angle of the map' ,
88- '(in degrees, where *0* means perpendicular to the surface of the map).'
88+ '(in degrees, where *0* means perpendicular to the surface of the map) (mapbox.pitch) .'
8989 ] . join ( ' ' )
9090 } ,
9191
@@ -113,7 +113,7 @@ var attrs = module.exports = overrideAll({
113113 valType : 'any' ,
114114 role : 'info' ,
115115 description : [
116- 'Sets the source data for this layer.' ,
116+ 'Sets the source data for this layer (mapbox.layer.source) .' ,
117117 'Source can be either a URL,' ,
118118 'a geojson object (with `sourcetype` set to *geojson*)' ,
119119 'or an array of tile URLS (with `sourcetype` set to *vector*).'
@@ -125,7 +125,7 @@ var attrs = module.exports = overrideAll({
125125 dflt : '' ,
126126 role : 'info' ,
127127 description : [
128- 'Specifies the layer to use from a vector tile source.' ,
128+ 'Specifies the layer to use from a vector tile source (mapbox.layer.source-layer) .' ,
129129 'Required for *vector* source type that supports multiple layers.'
130130 ] . join ( ' ' )
131131 } ,
@@ -136,7 +136,7 @@ var attrs = module.exports = overrideAll({
136136 dflt : 'circle' ,
137137 role : 'info' ,
138138 description : [
139- 'Sets the layer type.' ,
139+ 'Sets the layer type (mapbox.layer.type) .' ,
140140 'Support for *raster*, *background* types is coming soon.' ,
141141 'Note that *line* and *fill* are not compatible with Point' ,
142142 'GeoJSON geometries.'
@@ -161,10 +161,10 @@ var attrs = module.exports = overrideAll({
161161 role : 'style' ,
162162 description : [
163163 'Sets the primary layer color.' ,
164- 'If `type` is *circle*, color corresponds to the circle color' ,
165- 'If `type` is *line*, color corresponds to the line color' ,
166- 'If `type` is *fill*, color corresponds to the fill color' ,
167- 'If `type` is *symbol*, color corresponds to the icon color'
164+ 'If `type` is *circle*, color corresponds to the circle color (mapbox.layer.paint.circle-color) ' ,
165+ 'If `type` is *line*, color corresponds to the line color (mapbox.layer.paint.line-color) ' ,
166+ 'If `type` is *fill*, color corresponds to the fill color (mapbox.layer.paint.fill-color) ' ,
167+ 'If `type` is *symbol*, color corresponds to the icon color (mapbox.layer.paint.icon-color) '
168168 ] . join ( ' ' )
169169 } ,
170170 opacity : {
@@ -173,7 +173,35 @@ var attrs = module.exports = overrideAll({
173173 max : 1 ,
174174 dflt : 1 ,
175175 role : 'info' ,
176- description : 'Sets the opacity of the layer.'
176+ description : [
177+ 'Sets the opacity of the layer.' ,
178+ 'If `type` is *circle*, opacity corresponds to the circle opacity (mapbox.layer.paint.circle-opacity)' ,
179+ 'If `type` is *line*, opacity corresponds to the line opacity (mapbox.layer.paint.line-opacity)' ,
180+ 'If `type` is *fill*, opacity corresponds to the fill opacity (mapbox.layer.paint.fill-opacity)' ,
181+ 'If `type` is *symbol*, opacity corresponds to the icon/text opacity (mapbox.layer.paint.text-opacity)'
182+ ] . join ( ' ' )
183+ } ,
184+ minzoom : {
185+ valType : 'number' ,
186+ min : 0 ,
187+ max : 24 ,
188+ dflt : 0 ,
189+ role : 'info' ,
190+ description : [
191+ 'Sets the minimum zoom level (mapbox.layer.minzoom).' ,
192+ 'At zoom levels less than the minzoom, the layer will be hidden.' ,
193+ ] . join ( ' ' )
194+ } ,
195+ maxzoom : {
196+ valType : 'number' ,
197+ min : 0 ,
198+ max : 24 ,
199+ dflt : 24 ,
200+ role : 'info' ,
201+ description : [
202+ 'Sets the maximum zoom level (mapbox.layer.maxzoom).' ,
203+ 'At zoom levels equal to or greater than the maxzoom, the layer will be hidden.'
204+ ] . join ( ' ' )
177205 } ,
178206
179207 // type-specific style attributes
@@ -183,7 +211,7 @@ var attrs = module.exports = overrideAll({
183211 dflt : 15 ,
184212 role : 'style' ,
185213 description : [
186- 'Sets the circle radius.' ,
214+ 'Sets the circle radius (mapbox.layer.paint.circle-radius) .' ,
187215 'Has an effect only when `type` is set to *circle*.'
188216 ] . join ( ' ' )
189217 }
@@ -195,7 +223,15 @@ var attrs = module.exports = overrideAll({
195223 dflt : 2 ,
196224 role : 'style' ,
197225 description : [
198- 'Sets the line width.' ,
226+ 'Sets the line width (mapbox.layer.paint.line-width).' ,
227+ 'Has an effect only when `type` is set to *line*.'
228+ ] . join ( ' ' )
229+ } ,
230+ dash : {
231+ valType : 'data_array' ,
232+ role : 'style' ,
233+ description : [
234+ 'Sets the length of dashes and gaps (mapbox.layer.paint.line-dasharray).' ,
199235 'Has an effect only when `type` is set to *line*.'
200236 ] . join ( ' ' )
201237 }
@@ -207,7 +243,7 @@ var attrs = module.exports = overrideAll({
207243 dflt : defaultLine ,
208244 role : 'style' ,
209245 description : [
210- 'Sets the fill outline color.' ,
246+ 'Sets the fill outline color (mapbox.layer.paint.fill-outline-color) .' ,
211247 'Has an effect only when `type` is set to *fill*.'
212248 ] . join ( ' ' )
213249 }
@@ -219,7 +255,7 @@ var attrs = module.exports = overrideAll({
219255 dflt : 'marker' ,
220256 role : 'style' ,
221257 description : [
222- 'Sets the symbol icon image.' ,
258+ 'Sets the symbol icon image (mapbox.layer.layout.icon-image) .' ,
223259 'Full list: https://www.mapbox.com/maki-icons/'
224260 ] . join ( ' ' )
225261 } ,
@@ -228,7 +264,7 @@ var attrs = module.exports = overrideAll({
228264 dflt : 10 ,
229265 role : 'style' ,
230266 description : [
231- 'Sets the symbol icon size.' ,
267+ 'Sets the symbol icon size (mapbox.layer.layout.icon-size) .' ,
232268 'Has an effect only when `type` is set to *symbol*.'
233269 ] . join ( ' ' )
234270 } ,
@@ -237,7 +273,19 @@ var attrs = module.exports = overrideAll({
237273 dflt : '' ,
238274 role : 'info' ,
239275 description : [
240- 'Sets the symbol text.'
276+ 'Sets the symbol text (mapbox.layer.layout.text-field).'
277+ ] . join ( ' ' )
278+ } ,
279+ placement : {
280+ valType : 'enumerated' ,
281+ values : [ 'point' , 'line' , 'line-center' ] ,
282+ dflt : 'point' ,
283+ role : 'info' ,
284+ description : [
285+ 'Sets the symbol and/or text placement (mapbox.layer.layout.symbol-placement).' ,
286+ 'If `placement` is *point*, the label is placed where the geometry is located' ,
287+ 'If `placement` is *line*, the label is placed along the line of the geometry' ,
288+ 'If `placement` is *line-center*, the label is placed on the center of the geometry' ,
241289 ] . join ( ' ' )
242290 } ,
243291 textfont : fontAttr ,
0 commit comments