new ol.tilegrid.WMTS(options) experimental
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
WMTS options.
|
Extends
Methods
-
ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet(matrixSet, opt_extent){ol.tilegrid.WMTS} experimental
src/ol/tilegrid/wmtstilegrid.js, line 78 -
Create a tile grid from a WMTS capabilities matrix set.
Name Type Description matrixSet
Object An object representing a matrixSet in the capabilities document.
extent
ol.Extent An optional extent to restrict the tile ranges the server provides.
Returns:
WMTS tileGrid instance.
-
getMatrixIds(){Array.<string>} experimental
src/ol/tilegrid/wmtstilegrid.js, line 64 -
Get the list of matrix identifiers.
Returns:
MatrixIds.
-
getMaxZoom(){number} inherited experimental
src/ol/tilegrid/tilegrid.js, line 195 -
Get the maximum zoom level for the grid.
Returns:
Max zoom.
-
getMinZoom(){number} inherited experimental
src/ol/tilegrid/tilegrid.js, line 205 -
Get the minimum zoom level for the grid.
Returns:
Min zoom.
-
getOrigin(z){ol.Coordinate} inherited
src/ol/tilegrid/tilegrid.js, line 216 -
Get the origin for the grid at the given zoom level.
Name Type Description z
number Z.
Returns:
Origin.
-
getResolution(z){number} inherited
src/ol/tilegrid/tilegrid.js, line 236 -
Get the resolution for the given zoom level.
Name Type Description z
number Z.
Returns:
Resolution.
-
getResolutions(){Array.<number>} inherited
src/ol/tilegrid/tilegrid.js, line 249 -
Get the list of resolutions for the tile grid.
Returns:
Resolutions.
-
getTileCoordForCoordAndResolution(coordinate, resolution, opt_tileCoord){ol.TileCoord} inherited experimental
src/ol/tilegrid/tilegrid.js, line 369 -
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
ol.Coordinate Coordinate.
resolution
number Resolution.
tileCoord
ol.TileCoord Destination ol.TileCoord object.
Returns:
Tile coordinate.
-
getTileCoordForCoordAndZ(coordinate, z, opt_tileCoord){ol.TileCoord} inherited experimental
src/ol/tilegrid/tilegrid.js, line 421 -
Get a tile coordinate given a map coordinate and zoom level.
Name Type Description coordinate
ol.Coordinate Coordinate.
z
number Zoom level.
tileCoord
ol.TileCoord Destination ol.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 anol.Size
, run the result throughol.size.toSize()
.Name Type Description z
number Z.
Returns:
Tile size.