Style Properties
Last updated
Last updated
Style properties common for all layers.
visible
Type: boolean, optional
Default: true
Visibility of the layer. See .
opacity
Type: number, optional
Default: 1
Opacity of the layer. See .
extensions
Type: array of extensions
Use [new ClipExtension()]
for a global image in an equirectangular projection on a , to clip the areas of the image beyond a valid Mercator bounding box. See .
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 , 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 .