Namespace: tilegrid

ol.tilegrid


Classes

TileGrid
WMTS

Methods

ol.tilegrid.createForProjection(projection, opt_maxZoom, opt_tileSize, opt_corner){ol.tilegrid.TileGrid}

src/ol/tilegrid.js, line 136
Name Type Description
projection ol.ProjectionLike

Projection.

maxZoom number

Maximum zoom level (default is ol.DEFAULT_MAX_ZOOM).

tileSize number | ol.Size

Tile size (default uses ol.DEFAULT_TILE_SIZE).

corner ol.extent.Corner

Extent corner (default is ol.extent.Corner.BOTTOM_LEFT).

Returns:
TileGrid instance.

ol.tilegrid.createXYZ(opt_options){ol.tilegrid.TileGrid}

src/ol/tilegrid.js, line 80

Creates a tile grid with a standard XYZ tiling scheme.

Name Type Description
options

Tile grid options.

Name Type Description
extent ol.Extent | undefined

Extent for the tile grid. The origin for an XYZ tile grid is the top-left corner of the extent. The zero level of the grid is defined by the resolution at which one tile fits in the provided extent. If not provided, the extent of the EPSG:3857 projection is used.

maxZoom number | undefined

Maximum zoom. The default is ol.DEFAULT_MAX_ZOOM. This determines the number of levels in the grid set. For example, a maxZoom of 21 means there are 22 levels in the grid set.

minZoom number | undefined

Minimum zoom. Default is 0.

tileSize number | ol.Size | undefined

Tile size in pixels. Default is [256, 256].

Returns:
Tile grid instance.