Common options
- Last UpdatedJan 21, 2025
- 1 minute read
The following table describes the common configurable options for all layers:
|
Property |
Type |
Description |
|---|---|---|
|
isBaseMap [Optional] |
Boolean |
Considers the layer as a base map. |
|
extent [Optional] |
Number[] |
Defines the bounding extent for layer rendering. The layer is not rendered outside of this extent. It represents a box in the format [minX, minY, maxX, maxY]. |
|
background [Optional] |
String |
Defines the background color for the layer. If not specified, no background is rendered. |
|
attributions [Optional] |
String |
Defines layer source attributions. |
|
maxZoom [Optional] |
Number |
Defines the maximum view zoom level (inclusive) at which a layer is visible. |
|
minZoom [Optional] |
Boolean |
Defines the minimum view zoom level (exclusive) above which a layer is visible. |
|
opacity [Optional] |
Number |
Defines layer opacity from 0 (transparent) to 1 (fully opaque).
|
|
title |
String |
Defines layer identifier used in map layer switcher. |
|
visible [Optional] |
Boolean |
Defines initial layer visibility. |
|
zIndex [Optional] |
Number |
Defines the stack order for layer rendering. At rendering time, the layers are ordered,
first by zIndex and then by position. |