new ol.tilegrid.WMTS(options) experimental
| Name | Type | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
WMTS options.
|
|||||||||||||||||||||||||||||||
Extends
Methods
-
ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet(matrixSet, opt_extent, opt_matrixLimits){ol.tilegrid.WMTS} experimental
src/ol/tilegrid/wmts.js, line 80 -
Create a tile grid from a WMTS capabilities matrix set and an optional TileMatrixSetLimits.
Name Type Description matrixSetObject An object representing a matrixSet in the capabilities document.
extentol.Extent An optional extent to restrict the tile ranges the server provides.
matrixLimitsArray.<Object> An optional object representing the available matrices for tileGrid.
Returns:
WMTS tileGrid instance.
-
forEachTileCoord(extent, zoom, callback) inherited experimental
src/ol/tilegrid/tilegrid.js, line 149 -
Call a function with each tile coordinate for a given extent and zoom level.
Name Type Description extentol.Extent Extent.
zoomnumber Zoom level.
callbackfunction Function called with each tile coordinate.
-
getMatrixIds(){Array.<string>} experimental
src/ol/tilegrid/wmts.js, line 63 -
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 znumber Z.
Returns:
Origin.
-
Get the resolution for the given zoom level.
Name Type Description znumber Z.
Returns:
Resolution.
-
Get the list of resolutions for the tile grid.
Returns:
Resolutions.
-
Get the extent of a tile coordinate.
Name Type Description tileCoordol.TileCoord Tile coordinate.
extentol.Extent Temporary extent object.
Returns:
Extent.
-
getTileCoordForCoordAndResolution(coordinate, resolution, opt_tileCoord){ol.TileCoord} inherited experimental
src/ol/tilegrid/tilegrid.js, line 366 -
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 coordinateol.Coordinate Coordinate.
resolutionnumber Resolution.
tileCoordol.TileCoord Destination ol.TileCoord object.
Returns:
Tile coordinate.
-
getTileCoordForCoordAndZ(coordinate, z, opt_tileCoord){ol.TileCoord} inherited experimental
src/ol/tilegrid/tilegrid.js, line 417 -
Get a tile coordinate given a map coordinate and zoom level.
Name Type Description coordinateol.Coordinate Coordinate.
znumber Zoom level.
tileCoordol.TileCoord Destination ol.TileCoord object.
Returns:
Tile coordinate.
-
Get the tile size for a zoom level. The type of the return value matches the
tileSizeortileSizesthat the tile grid was configured with. To always get anol.Size, run the result throughol.size.toSize().Name Type Description znumber Z.
Returns:
Tile size.
-
getZForResolution(resolution, opt_direction){number} inherited experimental
src/ol/tilegrid/tilegrid.js, line 481 -
Name Type Description resolutionnumber Resolution.
directionnumber 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.
OpenLayers 3