Module: ol/source/Zoomify




Type Definitions


Name Type Argument Default Description
attributions module:ol/source/Source~AttributionLike <optional>


cacheSize number <optional>

Tile cache size. The default depends on the screen size. Will be ignored if too small.

crossOrigin null | string <optional>

The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value you want to access pixel data with the Canvas renderer. See for more detail.

projection module:ol/proj~ProjectionLike <optional>


tilePixelRatio number <optional>

The pixel ratio used by the tile service. For example, if the tile service advertizes 256px by 256px tiles but actually sends 512px by 512px images (for retina/hidpi devices) then tilePixelRatio should be set to 2

reprojectionErrorThreshold number <optional>

Maximum allowed reprojection error (in pixels). Higher values can increase reprojection performance, but decrease precision.

url string

URL template or base URL of the Zoomify service. A base URL is the fixed part of the URL, excluding the tile group, z, x, and y folder structure, e.g. A URL template must include {TileGroup}, {x}, {y}, and {z} placeholders, e.g.{TileGroup}/{z}-{x}-{y}.jpg. Internet Imaging Protocol (IIP) with JTL extension can be also used with {tileIndex} and {z} placeholders, e.g.{z},{tileIndex}. A {?-?} template pattern, for example subdomain{a-f}, may be used instead of defining each one separately in the urls option.

tierSizeCalculation string <optional>

Tier size calculation method: default or truncated.

size module:ol/size~Size
extent module:ol/extent~Extent <optional>

Extent for the TileGrid that is created. Default sets the TileGrid in the fourth quadrant, meaning extent is [0, -height, width, 0]. To change the extent to the first quadrant (the default for OpenLayers 2) set the extent as [0, 0, width, height].

transition number <optional>

Duration of the opacity transition for rendering. To disable the opacity transition, pass transition: 0.

tileSize number <optional>

Tile size. Same tile size is used for all zoom levels.

zDirection number <optional>

Indicate which resolution should be used by a renderer if the views resolution does not match any resolution of the tile source. If 0, the nearest resolution will be used. If 1, the nearest lower resolution will be used. If -1, the nearest higher resolution will be used.