Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Description attributionsAttributionLike | undefined 归属信息。
cacheSizenumber | undefined 已弃用。 请改用图层上的 cacheSize 选项。
crossOriginnull | string | undefined 已加载图像的 crossOrigin 属性。注意如果要使用 Canvas 渲染器访问像素数据,必须提供 crossOrigin 值。详见 https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image。 referrerPolicyReferrerPolicy | undefined 已加载图像的
referrerPolicy属性。interpolateboolean
(defaults to true)重采样时是否使用插值。默认情况下, 重采样时使用线性插值。设置为 false 可使用 the nearest neighbor instead.
projectionProjectionLike | undefined 投影。
tilePixelRationumber | undefined 瓦片服务使用的像素比。例如,如果瓦片服务宣传 256x256 像素瓦片但实际发送 512x512 像素图像(用于 retina/hidpi 设备),则
tilePixelRatio应设置为2reprojectionErrorThresholdnumber
(defaults to 0.5)允许的最大重投影误差(以像素为单位)。 值越高可以提高重投影性能,但会降低精度。
urlstring 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选项中逐个定义。tierSizeCalculationTierSizeCalculation | undefined 层大小计算方法:
default或truncated。sizeSize 大小。
extentExtent | undefined 创建的 TileGrid 的范围。默认将 TileGrid 设置在第四象限,即范围为
[0, -height, width, 0]。要将范围更改为第一象限(OpenLayers 2 的默认值),请将范围设置为[0, 0, width, height]。transitionnumber | undefined 渲染的不透明度过渡持续时间。要禁用不透明度过渡,请传递
transition: 0。tileSizenumber
(defaults to 256)瓦片尺寸。所有缩放级别使用相同的瓦片尺寸。
zDirectionnumber | NearestDirection函数
(defaults to 0)选择在整数缩放级别之间使用更高还是更低缩放级别的瓦片。参见
getZForResolution。 -
TierSizeCalculation{'default'} {'truncated'}
-