Module: ol/source/ImageStatic

ol/source/ImageStatic


Classes

Static

Type Definitions

Options{Object}

Properties:
Name Type Description
attributions AttributionLike | undefined

归属信息。

crossOrigin null | string | undefined 已加载图像的 crossOrigin 属性。注意如果要使用 Canvas 渲染器访问像素数据,必须提供 crossOrigin 值。详见 https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image。
referrerPolicy ReferrerPolicy | undefined

已加载图像的 referrerPolicy 属性。

imageExtent Extent

图像在地图坐标中的范围。即图像的 [left, bottom, right, top] 地图坐标。

imageLoad函数 Load函数 | undefined

给定 URL 加载图像的可选函数。

interpolate boolean
(defaults to true)

重采样时是否使用插值。默认情况下, 重采样时使用线性插值。设置为 false 可使用 the nearest neighbor instead.

projection ProjectionLike | undefined

投影。默认为视图投影。

url string

图像 URL。