Module: ol/source/IIIF

ol/source/IIIF


Classes

IIIF

Type Definitions

Options{Object}

Properties:
Name Type Description
attributions AttributionLike | undefined

归属信息。

attributionsCollapsible boolean
(defaults to true)

归属信息是否可折叠。

cacheSize number | undefined

已弃用。 请改用图层上的 cacheSize 选项。

crossOrigin null | string | undefined

请求的 crossOrigin 选项的值。

extent Extent
(defaults to [0, -height, width, 0])

范围。

format string
(defaults to 'jpg')

请求的图像格式。

interpolate boolean
(defaults to true)

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

projection ProjectionLike | undefined

投影。

quality string | undefined

请求的 IIIF 图像质量。版本 1 默认为 'native',版本 2 和 3 默认为 'default'。

reprojectionErrorThreshold number
(defaults to 0.5)

允许的最大重投影误差(以像素为单位)。 值越高可以提高重投影性能,但会降低精度。

resolutions Array.<number> | undefined

IIIF 'scaleFactors' 中给出的支持的分辨率

size Size

图像尺寸 [width, height]。

sizes Array<Size> | undefined

支持的缩放图像尺寸。IIIF info.json 'sizes' 属性的内容,但作为 Size 对象数组。

state State | undefined

数据源状态。

supports Array.<string>
(defaults to [])

支持的 IIIF 区域和尺寸计算特性。

tilePixelRatio number | undefined

瓦片像素比。

tileSize number | Size | undefined

瓦片尺寸。所有缩放级别使用相同的瓦片尺寸。如果瓦片尺寸为数字,则假定为正方形瓦片。如果 IIIF 图像服务支持任意分块(支持 sizeByH、sizeByW、sizeByWh 或 sizeByPct 以及 regionByPx 或 regionByPct),默认瓦片尺寸为 256。

transition number | undefined

过渡。

url string | undefined

IIIF 图像服务的基础 URL。应与 IIIF 图像 ID 相同。

version Versions
(defaults to Versions.VERSION2)

服务的 IIIF Image API 版本。

zDirection number | NearestDirection函数
(defaults to 0)

选择在整数缩放级别之间使用更高还是更低缩放级别的瓦片。参见 getZForResolution