Class: default
A custom Mapbox GL JS layer for rendering georeferenced images with arbitrary projections.
Implements
CustomLayerInterface
Constructors
Constructor
new default(
id,option):ImageLayer
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | A unique layer id |
option | ImageLayerOption | ImageLayer options |
Returns
ImageLayer
Methods
updateImage()
updateImage(
option):ImageLayerCore
Updates the URL, the projection, the coordinates, the opacity or the resampling of the image.
Parameters
| Parameter | Type | Description |
|---|---|---|
option | Partial<Omit<ImageLayerOption, "mask">> | Options object. |
Returns
ImageLayerCore
updateMask()
updateMask(
mask):ImageLayerCore
Updates the mask property of the image layer.
Parameters
| Parameter | Type | Description |
|---|---|---|
mask | Partial<MaskProperty> |
Returns
ImageLayerCore