Atlaslog
Atlaslog / OpenLayers / API / ImageStatic
OpenLayers · API reference

ImageStatic

Quick answer

A single, non-tiled image stretched onto a given geographic extent. Suitable for scanned maps, plan drawings and single-frame imagery.

Last verified 2026-11-03 · OpenLayers 10.3.1 · Cite this page
Runnable examplesChinese noteAll API topics

Classes

Static

Type Definitions

Options{Object}

Properties:
Name Type Description
attributions AttributionLike | undefined

Attributions.

crossOrigin null | string | undefined

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.

referrerPolicy ReferrerPolicy | undefined

The referrerPolicy property for loaded images.

imageExtent Extent

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

imageLoadFunction LoadFunction | undefined

Optional function to load an image given a URL.

interpolate boolean
(defaults to 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 | undefined

Projection. Default is the view projection.

url string

Image URL.

TutorialsAPI index
English reference text adapted from the official OpenLayers documentation, © OpenLayers contributors, licensed under BSD-2-Clause.
Original page: https://openlayers.org/en/latest/apidoc/module-ol_source_ImageStatic.html · Chinese note: /openlayers/api/image-static.html
Cite this page

Atlaslog (2026). ImageStatic. https://www.jingweizhi.com/en/openlayers/api/image-static.html (accessed 2026-11-03).