Skip to content

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 ​

ParameterTypeDescription
idstringA unique layer id
optionImageLayerOptionImageLayer options

Returns ​

ImageLayer

Methods ​

updateImage() ​

updateImage(option): ImageLayerCore

Updates the URL, the projection, the coordinates, the opacity or the resampling of the image.

Parameters ​

ParameterTypeDescription
optionPartial<Omit<ImageLayerOption, "mask">>Options object.

Returns ​

ImageLayerCore


updateMask() ​

updateMask(mask): ImageLayerCore

Updates the mask property of the image layer.

Parameters ​

ParameterTypeDescription
maskPartial<MaskProperty>

Returns ​

ImageLayerCore