Type Alias: ImageLayerOption
ImageLayerOption =
object
The options for the ImageLayer.
Properties
arrugatorStep?
optional
arrugatorStep:number
The step size for the Arrugator algorithm, which controls the granularity of the image rendering.
coordinates
coordinates:
maplibregl.Coordinates
Corners of image specified in longitude, latitude pairs.
crossOrigin?
optional
crossOrigin:string
Cross-origin attribute for the image, which can be used to specify how the image should be fetched. Defaults to 'anonymous'.
mask?
optional
mask:MaskProperty
Masking properties for the image layer. If not provided, no mask will be applied.
opacity?
optional
opacity:number
Opacity of the image layer, ranging from 0 (fully transparent) to 1 (fully opaque). Defaults to 1.
projection
projection:
string
The projection of the image, typically an EPSG code like 'EPSG:4326'.
resampling?
optional
resampling:"linear"
|"nearest"
The resampling/interpolation method to use for overscaling.
- 'linear': Linear interpolation (default).
- 'nearest': Nearest neighbor interpolation. If not specified, the default is 'linear'.
url
url:
string
URL that points to an image.