You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Sets the source type for this layer, that is the type of the layer data.
211
+
*/
180
212
sourcetype: "geojson"|"vecotr"|"raster"|"image";
181
-
source: number|string;
213
+
/**
214
+
* Sets the source data for this layer (mapbox.layer.source).
215
+
* When `sourcetype` is set to *geojson*, `source` can be a URL to a GeoJSON or a GeoJSON object.
216
+
* When `sourcetype` is set to *vector* or *raster*, `source` can be a URL or an array of tile URLs.
217
+
* When `sourcetype` is set to *image*, `source` can be a URL to an image.
218
+
*/
219
+
source: any;
220
+
/**
221
+
* Specifies the layer to use from a vector tile source (mapbox.layer.source-layer).
222
+
* Required for *vector* source type that supports multiple layers.
223
+
*/
182
224
sourcelayer: string;
225
+
/**
226
+
* Sets the attribution for this source.
227
+
*/
183
228
sourceattribution: string;
229
+
/**
230
+
* Sets the layer type,
231
+
* that is the how the layer data set in `source` will be rendered With `sourcetype` set to *geojson*,
232
+
* the following values are allowed: *circle*, *line*, *fill* and *symbol*.
233
+
* But note that *line* and *fill* are not compatible with Point GeoJSON geometries.
234
+
* With `sourcetype` set to *vector*, the following values are allowed: *circle*, *line*, *fill* and *symbol*.
235
+
* With `sourcetype` set to *raster* or `*image*`, only the *raster* value is allowed.
236
+
*/
184
237
type: "circle"|"line"|"fill"|"symbol"|"raster";
238
+
/**
239
+
* Sets the coordinates array contains [longitude, latitude] pairs for the image corners listed in clockwise order: top left, top right, bottom right, bottom left.
240
+
* Only has an effect for *image* `sourcetype`.
241
+
*/
185
242
coordinates: number|string;
243
+
/**
244
+
* Determines if the layer will be inserted before the layer with the specified ID.
245
+
* If omitted or set to '', the layer will be inserted above every existing layer.
246
+
*/
186
247
below: string;
248
+
/**
249
+
* Sets the primary layer color.
250
+
* If `type` is *circle*, color corresponds to the circle color (mapbox.layer.paint.circle-color).
251
+
* If `type` is *line*, color corresponds to the line color (mapbox.layer.paint.line-color).
252
+
* If `type` is *fill*, color corresponds to the fill color (mapbox.layer.paint.fill-color).
253
+
* If `type` is *symbol*, color corresponds to the icon color (mapbox.layer.paint.icon-color).
254
+
*/
187
255
color: Color;
256
+
/**
257
+
* Sets the opacity of the layer.
258
+
* If `type` is *circle*, opacity corresponds to the circle opacity (mapbox.layer.paint.circle-opacity).
259
+
* If `type` is *line*, opacity corresponds to the line opacity (mapbox.layer.paint.line-opacity).
260
+
* If `type` is *fill*, opacity corresponds to the fill opacity (mapbox.layer.paint.fill-opacity).
261
+
* If `type` is *symbol*, opacity corresponds to the icon/text opacity (mapbox.layer.paint.text-opacity).
262
+
*/
188
263
opacity: number;
264
+
/**
265
+
* Sets the minimum zoom level (mapbox.layer.minzoom).
266
+
* At zoom levels less than the minzoom, the layer will be hidden.
267
+
*/
189
268
minzoom: number;
269
+
/**
270
+
* Sets the maximum zoom level (mapbox.layer.maxzoom).
271
+
* At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
272
+
*/
190
273
maxzoom: number;
191
-
circle: {radius: number};
274
+
circle: {
275
+
/**
276
+
* Sets the circle radius (mapbox.layer.paint.circle-radius).
277
+
* Has an effect only when `type` is set to *circle*.
278
+
*/
279
+
radius: number;
280
+
};
192
281
line: Partial<ShapeLine>;
193
-
fill: {outlinecolor: Color};
282
+
fill: {
283
+
/**
284
+
* Sets the fill outline color (mapbox.layer.paint.fill-outline-color).
285
+
* Has an effect only when `type` is set to *fill*.
286
+
*/
287
+
outlinecolor: Color;
288
+
};
194
289
symbol: Partial<MapboxSymbol>;
290
+
/**
291
+
* When used in a template, named items are created in the output figure in addition to any items the figure already has in this array.
292
+
* You can modify these items in the output figure by making your own item with `templateitemname` matching this `name`
293
+
* alongside your modifications (including `visible: false` or `enabled: false` to hide it).
294
+
* Has no effect outside of a template.
295
+
*/
195
296
name: string;
297
+
/**
298
+
* Used to refer to a named item in this array in the template.
299
+
* Named items from the template will be created even without a matching item in the input figure,
300
+
* but you can modify one by making an item with `templateitemname` matching its `name`,
301
+
* alongside your modifications (including `visible: false` or `enabled: false` to hide it).
302
+
* If there is no template or no matching item,
303
+
* this item will be hidden unless you explicitly show it with `visible: true`.
* Sets the source type for this layer, that is the type of the layer data.
211
+
*/
180
212
sourcetype: "geojson"|"vecotr"|"raster"|"image";
181
-
source: number|string;
213
+
/**
214
+
* Sets the source data for this layer (mapbox.layer.source).
215
+
* When `sourcetype` is set to *geojson*, `source` can be a URL to a GeoJSON or a GeoJSON object.
216
+
* When `sourcetype` is set to *vector* or *raster*, `source` can be a URL or an array of tile URLs.
217
+
* When `sourcetype` is set to *image*, `source` can be a URL to an image.
218
+
*/
219
+
source: any;
220
+
/**
221
+
* Specifies the layer to use from a vector tile source (mapbox.layer.source-layer).
222
+
* Required for *vector* source type that supports multiple layers.
223
+
*/
182
224
sourcelayer: string;
225
+
/**
226
+
* Sets the attribution for this source.
227
+
*/
183
228
sourceattribution: string;
229
+
/**
230
+
* Sets the layer type,
231
+
* that is the how the layer data set in `source` will be rendered With `sourcetype` set to *geojson*,
232
+
* the following values are allowed: *circle*, *line*, *fill* and *symbol*.
233
+
* But note that *line* and *fill* are not compatible with Point GeoJSON geometries.
234
+
* With `sourcetype` set to *vector*, the following values are allowed: *circle*, *line*, *fill* and *symbol*.
235
+
* With `sourcetype` set to *raster* or `*image*`, only the *raster* value is allowed.
236
+
*/
184
237
type: "circle"|"line"|"fill"|"symbol"|"raster";
238
+
/**
239
+
* Sets the coordinates array contains [longitude, latitude] pairs for the image corners listed in clockwise order: top left, top right, bottom right, bottom left.
240
+
* Only has an effect for *image* `sourcetype`.
241
+
*/
185
242
coordinates: number|string;
243
+
/**
244
+
* Determines if the layer will be inserted before the layer with the specified ID.
245
+
* If omitted or set to '', the layer will be inserted above every existing layer.
246
+
*/
186
247
below: string;
248
+
/**
249
+
* Sets the primary layer color.
250
+
* If `type` is *circle*, color corresponds to the circle color (mapbox.layer.paint.circle-color).
251
+
* If `type` is *line*, color corresponds to the line color (mapbox.layer.paint.line-color).
252
+
* If `type` is *fill*, color corresponds to the fill color (mapbox.layer.paint.fill-color).
253
+
* If `type` is *symbol*, color corresponds to the icon color (mapbox.layer.paint.icon-color).
254
+
*/
187
255
color: Color;
256
+
/**
257
+
* Sets the opacity of the layer.
258
+
* If `type` is *circle*, opacity corresponds to the circle opacity (mapbox.layer.paint.circle-opacity).
259
+
* If `type` is *line*, opacity corresponds to the line opacity (mapbox.layer.paint.line-opacity).
260
+
* If `type` is *fill*, opacity corresponds to the fill opacity (mapbox.layer.paint.fill-opacity).
261
+
* If `type` is *symbol*, opacity corresponds to the icon/text opacity (mapbox.layer.paint.text-opacity).
262
+
*/
188
263
opacity: number;
264
+
/**
265
+
* Sets the minimum zoom level (mapbox.layer.minzoom).
266
+
* At zoom levels less than the minzoom, the layer will be hidden.
267
+
*/
189
268
minzoom: number;
269
+
/**
270
+
* Sets the maximum zoom level (mapbox.layer.maxzoom).
271
+
* At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
272
+
*/
190
273
maxzoom: number;
191
-
circle: {radius: number};
274
+
circle: {
275
+
/**
276
+
* Sets the circle radius (mapbox.layer.paint.circle-radius).
277
+
* Has an effect only when `type` is set to *circle*.
278
+
*/
279
+
radius: number;
280
+
};
192
281
line: Partial<ShapeLine>;
193
-
fill: {outlinecolor: Color};
282
+
fill: {
283
+
/**
284
+
* Sets the fill outline color (mapbox.layer.paint.fill-outline-color).
285
+
* Has an effect only when `type` is set to *fill*.
286
+
*/
287
+
outlinecolor: Color;
288
+
};
194
289
symbol: Partial<MapboxSymbol>;
290
+
/**
291
+
* When used in a template, named items are created in the output figure in addition to any items the figure already has in this array.
292
+
* You can modify these items in the output figure by making your own item with `templateitemname` matching this `name`
293
+
* alongside your modifications (including `visible: false` or `enabled: false` to hide it).
294
+
* Has no effect outside of a template.
295
+
*/
195
296
name: string;
297
+
/**
298
+
* Used to refer to a named item in this array in the template.
299
+
* Named items from the template will be created even without a matching item in the input figure,
300
+
* but you can modify one by making an item with `templateitemname` matching its `name`,
301
+
* alongside your modifications (including `visible: false` or `enabled: false` to hide it).
302
+
* If there is no template or no matching item,
303
+
* this item will be hidden unless you explicitly show it with `visible: true`.
0 commit comments