Class: WMTS

ol.tilegrid.WMTS

Set the grid pattern for sources accessing WMTS tiled-image servers.

new ol.tilegrid.WMTS(options) experimental

Name Type Description
options

WMTS options.

Name Type Description
origin ol.Coordinate | undefined experimental

Origin.

origins Array.<ol.Coordinate> | undefined experimental

Origins.

resolutions Array.<number> experimental

Resolutions.

matrixIds Array.<string> experimental

matrix IDs.

tileSize number | undefined experimental

Tile size.

tileSizes Array.<number> | undefined experimental

Tile sizes.

Extends

Methods

getMatrixIds(){Array.<string>} experimental

Returns:
MatrixIds.

getMaxZoom(){number} inherited experimental

Returns:
Max zoom.

getMinZoom(){number} inherited experimental

Returns:
Min zoom.
Name Type Description
z number

Z.

Returns:
Origin.

getResolution(z){number} inherited

Name Type Description
z number

Z.

Returns:
Resolution.

getResolutions(){Array.<number>} inherited

Returns:
Resolutions.

getTileCoordForCoordAndResolution(coordinate, resolution, opt_tileCoord){ol.TileCoord} inherited experimental

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

Name Type Description
coordinate ol.Coordinate

Coordinate.

z number

Z.

tileCoord ol.TileCoord

Destination ol.TileCoord object.

Returns:
Tile coordinate.
Name Type Description
z number

Z.

Returns:
Tile size.