new WMTSTileGrid(options)
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
WMTS options.
|
Extends
Methods
-
Call a function with each tile coordinate for a given extent and zoom level.
Name Type Description extent
module:ol/extent~Extent Extent.
zoom
number Integer zoom level.
callback
function Function called with each tile coordinate.
-
Get the extent for this tile grid, if it was configured.
Returns:
Extent.
-
getMatrixIds(){Array.<string>}
tilegrid/WMTS.js, line 88 -
Get the list of matrix identifiers.
Returns:
MatrixIds.
-
Get the maximum zoom level for the grid.
Returns:
Max zoom.
-
Get the minimum zoom level for the grid.
Returns:
Min zoom.
-
Get the origin for the grid at the given zoom level.
Name Type Description z
number Integer zoom level.
Returns:
Origin.
-
Get the resolution for the given zoom level.
Name Type Description z
number Integer zoom level.
Returns:
Resolution.
-
Get the list of resolutions for the tile grid.
Returns:
Resolutions.
-
getTileCoordExtent(tileCoord, opt_extent){module:ol/extent~Extent} inherited
tilegrid/TileGrid.js, line 373 -
Get the extent of a tile coordinate.
Name Type Description tileCoord
module:ol/tilecoord~TileCoord Tile coordinate.
extent
module:ol/extent~Extent Temporary extent object.
Returns:
Extent.
-
getTileCoordForCoordAndResolution(coordinate, resolution, opt_tileCoord){module:ol/tilecoord~TileCoord} inherited
tilegrid/TileGrid.js, line 395 -
Get the tile coordinate for the given map coordinate and resolution. This method considers that coordinates that intersect tile boundaries should be assigned the higher tile coordinate.
Name Type Description coordinate
module:ol/coordinate~Coordinate Coordinate.
resolution
number Resolution.
tileCoord
module:ol/tilecoord~TileCoord Destination module:ol/tilecoord~TileCoord object.
Returns:
Tile coordinate.
-
getTileCoordForCoordAndZ(coordinate, z, opt_tileCoord){module:ol/tilecoord~TileCoord} inherited
tilegrid/TileGrid.js, line 483 -
Get a tile coordinate given a map coordinate and zoom level.
Name Type Description coordinate
module:ol/coordinate~Coordinate Coordinate.
z
number Zoom level.
tileCoord
module:ol/tilecoord~TileCoord Destination module:ol/tilecoord~TileCoord object.
Returns:
Tile coordinate.
-
Get the tile size for a zoom level. The type of the return value matches the
tileSize
ortileSizes
that the tile grid was configured with. To always get anmodule:ol/size~Size
, run the result throughmodule:ol/size~Size.toSize()
.Name Type Description z
number Z.
Returns:
Tile size.
-
Name Type Description resolution
number Resolution.
direction
number 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. Default is 0.
Returns:
Z.