Skip to content

Type Alias: ImageLayerOption

ImageLayerOption = object

The options for ImageLayer

Properties

arrugatorStep?

optional arrugatorStep: 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?

optional crossOrigin: 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?

optional mask: MaskProperty

The mask property for the image layer. It defines how the image should be masked.


opacity?

optional opacity: number

The opacity of the image layer.

Default

ts
1.0

projection

projection: string

The projection of the image. It can be any projection supported by Proj4js, such as 'EPSG:4326' or 'EPSG:3857'.


resampling?

optional resampling: "linear" | "nearest"

The resampling method to use when reprojecting the image. Can be 'linear' or 'nearest'.

Default

ts
'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.