类
类型定义
-
Options{Object}
-
属性:
Name Type 描述 attributionsAttributionLike | undefined 归属。
attributionsCollapsibleboolean
(defaults to true)属性可折叠。
cacheSizenumber | undefined 已弃用。请改用图层上的 cacheSize 选项。
crossOriginnull | string | undefined 请求中 crossOrigin 选项的值。
extentExtent
(defaults to [0, -height, width, 0])范围
formatstring
(defaults to 'jpg')请求的图像格式。
interpolateboolean
(defaults to true)重采样过程中采用插值方法,默认为线性插值;将参数设置为 false 可改用最近邻插值。
projectionProjectionLike | undefined 投影.
qualitystring | undefined 所请求的IIIF图像质量:版本1默认为“原生”,版本2和3默认为“默认”。
reprojectionErrorThresholdnumber
(defaults to 0.5)最大允许重投影误差(像素)。较高的值可提升重投影性能,但会降低精度。
resolutionsArray.<number> | undefined IIIF 'scaleFactors' 中指定的支持分辨率
sizeSize 图像尺寸:[宽度, 高度]。
sizesArray<Size> | undefined 支持的缩放图像尺寸。IIIF info.json中'sizes'属性的内容,表示为Size对象数组。
stateState | undefined 源状态。
supportsArray.<string>
(defaults to [])支持IIIF的区域和尺寸计算功能。
tilePixelRationumber | undefined 瓦片像素比。
tileSizenumber | Size | undefined 瓦片尺寸。所有缩放层级均使用相同的瓦片尺寸。若指定为数值,则默认为方形瓦片。若IIIF影像服务支持任意切片(支持 sizeByH、sizeByW、sizeByWh 或 sizeByPct 以及 regionByPx 或 regionByPct 参数),则默认瓦片尺寸为 256。
transitionnumber | undefined 过渡。
urlstring | undefined IIIF图像服务的基础URL。该URL应与IIIF图像ID一致。
versionVersions
(defaults to Versions.VERSION2)服务的IIIF图像API版本
zDirectionnumber | NearestDirectionFunction
(defaults to 0)当缩放级别介于整数之间时,选择是否使用更高或更低缩放级别的瓦片。参见
getZForResolution.