模块:ol/source/IIIF

ol/source/IIIF


IIIF

类型定义

Options{Object}

属性:
Name Type 描述
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 可改用最近邻插值。

projection ProjectionLike | undefined

投影.

quality string | undefined

所请求的IIIF图像质量:版本1默认为“原生”,版本2和3默认为“默认”。

reprojectionErrorThreshold number
(defaults to 0.5)

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

resolutions Array.<number> | undefined

IIIF 'scaleFactors' 中指定的支持分辨率

size Size

图像尺寸:[宽度, 高度]。

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。该URL应与IIIF图像ID一致。

version Versions
(defaults to Versions.VERSION2)

服务的IIIF图像API版本

zDirection number | NearestDirectionFunction
(defaults to 0)

当缩放级别介于整数之间时,选择是否使用更高或更低缩放级别的瓦片。参见getZForResolution.