ImageLayerOptions interface
Options used when rendering Point objects in a ImageLayer.
- Extends
Properties
coordinates | An array of positions for the corners of the image listed in clockwise order: [top left, top right, bottom right, bottom left]. |
url | URL to an image to overlay. Images hosted on other domains must have CORs enabled. |
Inherited Properties
contrast | A number between -1 and 1 that increases or decreases the contrast of the overlay.
Default |
fade |
The duration in milliseconds of a fade transition when a new tile is added.
Must be greater or equal to 0.
Default |
filter | An expression specifying conditions on source features. Only features that match the filter are displayed. |
hue |
Rotates hues around the color wheel.
A number in degrees.
Default |
max |
A number between 0 and 1 that increases or decreases the maximum brightness of the overlay.
Default |
max |
An integer specifying the maximum zoom level to render the layer at.
This value is exclusive, i.e. the layer will be visible at |
min |
A number between 0 and 1 that increases or decreases the minimum brightness of the overlay.
Default |
min |
An integer specifying the minimum zoom level to render the layer at.
This value is inclusive, i.e. the layer will be visible at |
opacity | A number between 0 and 1 that indicates the opacity at which the overlay will be drawn.
Default |
saturation | A number between -1 and 1 that increases or decreases the saturation of the overlay.
Default |
visible | Specifies if the layer is visible or not.
Default |
Property Details
coordinates
An array of positions for the corners of the image listed in clockwise order: [top left, top right, bottom right, bottom left].
coordinates?: Position[]
Property Value
Position[]
url
URL to an image to overlay. Images hosted on other domains must have CORs enabled.
url?: string
Property Value
string
Inherited Property Details
contrast
A number between -1 and 1 that increases or decreases the contrast of the overlay.
Default 0
.
contrast?: number
Property Value
number
Inherited From MediaLayerOptions.contrast
fadeDuration
The duration in milliseconds of a fade transition when a new tile is added.
Must be greater or equal to 0.
Default 300
.
fadeDuration?: number
Property Value
number
Inherited From MediaLayerOptions.fadeDuration
filter
An expression specifying conditions on source features. Only features that match the filter are displayed.
filter?: Expression
Property Value
Inherited From LayerOptions.filter
hueRotation
Rotates hues around the color wheel.
A number in degrees.
Default 0
.
hueRotation?: number
Property Value
number
Inherited From MediaLayerOptions.hueRotation
maxBrightness
A number between 0 and 1 that increases or decreases the maximum brightness of the overlay.
Default 1
.
maxBrightness?: number
Property Value
number
Inherited From MediaLayerOptions.maxBrightness
maxZoom
An integer specifying the maximum zoom level to render the layer at.
This value is exclusive, i.e. the layer will be visible at maxZoom > zoom >= minZoom
.
Default 24
.
maxZoom?: number
Property Value
number
Inherited From LayerOptions.maxZoom
minBrightness
A number between 0 and 1 that increases or decreases the minimum brightness of the overlay.
Default 0
.
minBrightness?: number
Property Value
number
Inherited From MediaLayerOptions.minBrightness
minZoom
An integer specifying the minimum zoom level to render the layer at.
This value is inclusive, i.e. the layer will be visible at maxZoom > zoom >= minZoom
.
Default 0
.
minZoom?: number
Property Value
number
Inherited From LayerOptions.minZoom
opacity
A number between 0 and 1 that indicates the opacity at which the overlay will be drawn.
Default 1
.
opacity?: number
Property Value
number
Inherited From MediaLayerOptions.opacity
saturation
A number between -1 and 1 that increases or decreases the saturation of the overlay.
Default 0
.
saturation?: number
Property Value
number
Inherited From MediaLayerOptions.saturation
visible
Specifies if the layer is visible or not.
Default true
.
visible?: boolean
Property Value
boolean
Inherited From LayerOptions.visible