Style Properties

Style properties common for all layers.

visible

Type: boolean, optional

Default: true

Visibility of the layer. See Layer visiblearrow-up-right.

opacity

Type: number, optional

Default: 1

Opacity of the layer. See Layer opacityarrow-up-right.

extensions

Type: array of extensions

Use [new ClipExtension()] for a global image in an equirectangular projection on a WebMercatorViewportarrow-up-right, to clip the areas of the image beyond a valid Mercator bounding box. See ClipExtensionarrow-up-right.

clipBounds

Type: bounding box of minX, minY, maxX, maxY [number, number, number, number], required for ClipExtension

Recommended value is [-181, -85.051129, 181, 85.051129] for a global image in an equirectangular projection on a WebMercatorViewportarrow-up-right, to clip the areas of the image beyond a valid Mercator bounding box. There is 181 instead of 180 to avoid a pixel gap at the antimeridian. See ClipExtension.clipBoundsarrow-up-right.

Last updated