Module: ol/source/ImageStatic

ol/source/ImageStatic


Classes

Static

Type Definitions

Options{Object}

Properties:
Name Type Argument Default Description
attributions AttributionLike <optional>

Attributions.

crossOrigin null | string <optional>

The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer. See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.

imageExtent Extent <optional>

Extent of the image in map coordinates. This is the [left, bottom, right, top] map coordinates of your image.

imageLoadFunction LoadFunction <optional>

Optional function to load an image given a URL.

interpolate boolean <optional>
true

Use interpolated values when resampling. By default, linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.

projection ProjectionLike <optional>

Projection. Default is the view projection.

imageSize Size <optional>

Size of the image in pixels. Usually the image size is auto-detected, so this only needs to be set if auto-detection fails for some reason.

url string

Image URL.