Module: ol/source/Zoomify

ol/source/Zoomify


Classes

Zoomify

Type Definitions

Options{Object}

Properties:
Name Type Description
attributions AttributionLike | undefined

归属信息。

cacheSize number | undefined

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

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

已加载图像的 referrerPolicy 属性。

interpolate boolean
(defaults to true)

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

projection ProjectionLike | undefined

投影。

tilePixelRatio number | undefined

瓦片服务使用的像素比。例如,如果瓦片服务宣传 256x256 像素瓦片但实际发送 512x512 像素图像(用于 retina/hidpi 设备),则 tilePixelRatio 应设置为 2

reprojectionErrorThreshold number
(defaults to 0.5)

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

url string

Zoomify 服务的 URL 模板或基础 URL。基础 URL 是 URL 的固定部分,不包括瓦片组、z、x 和 y 文件夹结构,如 http://my.zoomify.info/IMAGE.TIF/。URL 模板必须包含 {TileGroup}{x}{y}{z} 占位符,如 http://my.zoomify.info/IMAGE.TIF/{TileGroup}/{z}-{x}-{y}.jpg。也可以使用带 JTL 扩展的 Internet Imaging Protocol (IIP),包含 {tileIndex}{z} 占位符,如 http://my.zoomify.info?FIF=IMAGE.TIF&JTL={z},{tileIndex}。可以使用 {?-?} 模板模式(例如 subdomain{a-f}.domain.com)来代替在 urls 选项中逐个定义。

tierSizeCalculation TierSizeCalculation | undefined

层大小计算方法:defaulttruncated

size Size

大小。

extent Extent | undefined

创建的 TileGrid 的范围。默认将 TileGrid 设置在第四象限,即范围为 [0, -height, width, 0]。要将范围更改为第一象限(OpenLayers 2 的默认值),请将范围设置为 [0, 0, width, height]

transition number | undefined

渲染的不透明度过渡持续时间。要禁用不透明度过渡,请传递 transition: 0

tileSize number
(defaults to 256)

瓦片尺寸。所有缩放级别使用相同的瓦片尺寸。

zDirection number | NearestDirection函数
(defaults to 0)

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

TierSizeCalculation{'default'} {'truncated'}