Type Definitions
-
olx.tilegrid.TileGridOptions{Object}
-
Properties:
Name Type Argument Description extentol.Extent | undefined <optional>
Extent for the tile grid. No tiles outside this extent will be requested by
ol.source.Tilesources. When nooriginororiginsare configured, theoriginwill be set to the top-left corner of the extent.minZoomnumber | undefined <optional>
Minimum zoom. Default is 0.
originol.Coordinate | undefined <optional>
The tile grid origin, i.e. where the
xandyaxes meet ([z, 0, 0]). Tile coordinates increase left to right and upwards. If not specified,extentororiginsmust be provided.originsArray.<ol.Coordinate> | undefined <optional>
Tile grid origins, i.e. where the
xandyaxes meet ([z, 0, 0]), for each zoom level. If given, the array length should match the length of theresolutionsarray, i.e. each resolution can have a different origin. Tile coordinates increase left to right and upwards. If not specified,extentororiginmust be provided.resolutionsArray.<number> Resolutions. The array index of each resolution needs to match the zoom level. This means that even if a
minZoomis configured, the resolutions array will have a length ofmaxZoom + 1. Required.tileSizenumber | ol.Size | undefined <optional>
Tile size. Default is
[256, 256].tileSizesArray.<(number|ol.Size)> | undefined <optional>
Tile sizes. If given, the array length should match the length of the
resolutionsarray, i.e. each resolution can have a different tile size. -
olx.tilegrid.WMTSOptions{Object}
-
Properties:
Name Type Argument Description extentol.Extent | undefined <optional>
Extent for the tile grid. No tiles outside this extent will be requested by
ol.source.Tilesources. When nooriginororiginsare configured, theoriginwill be set to the top-left corner of the extent.originol.Coordinate | undefined <optional>
The tile grid origin, i.e. where the
xandyaxes meet ([z, 0, 0]). Tile coordinates increase left to right and upwards. If not specified,extentororiginsmust be provided.originsArray.<ol.Coordinate> | undefined <optional>
Tile grid origins, i.e. where the
xandyaxes meet ([z, 0, 0]), for each zoom level. If given, the array length should match the length of theresolutionsarray, i.e. each resolution can have a different origin. Tile coordinates increase left to right and upwards. If not specified,extentororiginmust be provided.resolutionsArray.<number> Resolutions. The array index of each resolution needs to match the zoom level. This means that even if a
minZoomis configured, the resolutions array will have a length ofmaxZoom + 1Required.matrixIdsArray.<string> matrix IDs. The length of this array needs to match the length of the
resolutionsarray. Required.sizesArray.<ol.Size> | undefined <optional>
Number of tile rows and columns of the grid for each zoom level. The values here are the
TileMatrixWidthandTileMatrixHeightadvertised in the GetCapabilities response of the WMTS, and define the grid's extent together with theorigin. Anextentcan be configured in addition, and will further limit the extent for which tile requests are made by sources. Note that when the top-left corner of theextentis used asoriginororigins, then theyvalue must be negative because OpenLayers tile coordinates increase upwards.tileSizenumber | ol.Size | undefined <optional>
Tile size.
tileSizesArray.<(number|ol.Size)> | undefined <optional>
Tile sizes. The length of this array needs to match the length of the
resolutionsarray.widthsArray.<number> | undefined <optional>
Number of tile columns that cover the grid's extent for each zoom level. Only required when used with a source that has
wrapXset totrue, and only when the grid's origin differs from the one of the projection's extent. The array length has to match the length of theresolutionsarray, i.e. each resolution will have a matching entry here. -
olx.tilegrid.XYZOptions{Object}
-
Properties:
Name Type Argument Description extentol.Extent | undefined <optional>
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.
maxZoomnumber | undefined <optional>
Maximum zoom. The default is
ol.DEFAULT_MAX_ZOOM. This determines the number of levels in the grid set. For example, amaxZoomof 21 means there are 22 levels in the grid set.minZoomnumber | undefined <optional>
Minimum zoom. Default is 0.
tileSizenumber | ol.Size | undefined <optional>
Tile size in pixels. Default is
[256, 256].
OpenLayers