Type Alias: ImageLayerOption
ImageLayerOption =
object
The options for ImageLayer
Properties
arrugatorStep?
optionalarrugatorStep:number
The step size for the Arrugator algorithm. It controls the level of detail when reprojecting the image.
coordinates
coordinates:
Coordinates
The coordinates of the image corners in the specified projection.
crossOrigin?
optionalcrossOrigin:string
The crossOrigin attribute for loading the image. It can be set to 'anonymous' or 'use-credentials' if the image is loaded from a different origin and CORS is enabled on the server.
mask?
optionalmask:MaskProperty
The mask property for the image layer. It defines how the image should be masked.
opacity?
optionalopacity:number
The opacity of the image layer.
Default
1.0projection
projection:
string
The projection of the image. It can be any projection supported by Proj4js, such as 'EPSG:4326' or 'EPSG:3857'.
resampling?
optionalresampling:"linear"|"nearest"
The resampling method to use when reprojecting the image. Can be 'linear' or 'nearest'.
Default
'linear'url
url:
string
The URL of the image to display on the map. The image can be in any projection, and it will be reprojected to Web Mercator using Arrugator and Proj4js.