| Name | Type | Description |
|---|---|---|
attrs |
obj |
A JSON-Object holding the listed keys and values |
Example
{
"tileSize": 1024,
"format": "jpeg",
"overlap": 1,
"height": 4794,
"width": 4095,
"clip": { "minLevel": 12, "maxLevel": 20, "startCol": 301436, "startRow": 354060 },
// optional: minLevel and maxLevel define the level bounds
// startCol: first col at maxLevel
// startRow: first row at maxLevel
"path": "var/Vermeer/Vermeer_files",
"type": "dzi", // optional: dzi (default) or map
"urlTileTemplate": "{path}/{level}/{column}/{row}.{format}"
// optional: {path}/{level}/{column}_{row}.{format} (default) or
// a template String with the format of the URL
}
Classes
Methods
-
Computes the columns and rows as well as scaled width and height.
Name Type Description levelnumber The level of the wanted layer
Returns:
Type Description array [cols, rows, width, height] -
Computes the scaled width and height of the given level.
Name Type Description levelnumber The level of the wanted layer
Returns:
Type Description array size - The width and height -
Computes the number of cols and rows of tiles.
Name Type Description levelnumber The level of the wanted layer
Returns:
Type Description array size - The cols and rows -
Computes the scale at the given level.
Name Type Description levelnumber The level of the wanted layer
Returns:
Type Description number scale -
Loads the image for the given url and executes a callback function on completion.
Name Type Description urlstring The url of the tile
completefunction The callback function
Returns:
Type Description Image obj -
Computes the url for the given level, column and and row.
Name Type Description levelnumber The level of the wanted layer
columnnumber The column of the tile
rownumber The row of the tile
Returns:
Type Description string url