Class: ol.tilegrid.TileGrid

ol.tilegrid.TileGrid

new TileGrid

Parameters:
Name Type Description
tileGridOptions ol.tilegrid.TileGridOptions Tile grid options.
Source:
  • tilegrid.js, line 28

Methods

forEachTileCoordParentTileRange

Parameters:
Name Type Argument Description
tileCoord ol.TileCoord Tile coordinate.
callback function(this: T, number, ol.TileRange): boolean Callback.
obj T= <optional>
(Optional) Object.
Source:
  • tilegrid.js, line 87

getExtent

Source:
  • tilegrid.js, line 104
Returns:
Extent.
Type
ol.Extent

getOrigin

Parameters:
Name Type Description
z number Z.
Source:
  • tilegrid.js, line 113
Returns:
Origin.
Type
ol.Coordinate

getPixelBoundsForTileCoordAndResolution

Parameters:
Name Type Description
tileCoord ol.TileCoord Tile coordinate.
resolution number Resolution.
Source:
  • tilegrid.js, line 129
Returns:
Pixel bounds.
Type
ol.PixelBounds

getResolution

Parameters:
Name Type Description
z number Z.
Source:
  • tilegrid.js, line 148
Returns:
Resolution.
Type
number

getResolutions

Source:
  • tilegrid.js, line 157
Returns:
Resolutions.
Type
Array.<number>

getTileCoordCenter

Parameters:
Name Type Description
tileCoord ol.TileCoord Tile coordinate.
Source:
  • tilegrid.js, line 209
Returns:
Tile center.
Type
ol.Coordinate

getTileCoordExtent

Parameters:
Name Type Description
tileCoord ol.TileCoord Tile coordinate.
Source:
  • tilegrid.js, line 223
Returns:
Extent.
Type
ol.Extent

getTileCoordForCoordAndResolution

Parameters:
Name Type Description
coordinate ol.Coordinate Coordinate.
resolution number Resolution.
Source:
  • tilegrid.js, line 240
Returns:
Tile coordinate.
Type
ol.TileCoord

getTileCoordForCoordAndZ

Parameters:
Name Type Description
coordinate ol.Coordinate Coordinate.
z number Z.
Source:
  • tilegrid.js, line 284
Returns:
Tile coordinate.
Type
ol.TileCoord

getTileCoordResolution

Parameters:
Name Type Description
tileCoord ol.TileCoord Tile coordinate.
Source:
  • tilegrid.js, line 295
Returns:
Tile resolution.
Type
number

getTileRangeExtent

Parameters:
Name Type Description
z number Z.
tileRange ol.TileRange Tile range.
Source:
  • tilegrid.js, line 167
Returns:
Extent.
Type
ol.Extent

getTileRangeForExtentAndResolution

Parameters:
Name Type Description
extent ol.Extent Extent.
resolution number Resolution.
Source:
  • tilegrid.js, line 184
Returns:
Tile range.
Type
ol.TileRange

getTileRangeForExtentAndZ

Parameters:
Name Type Description
extent ol.Extent Extent.
z number Z.
Source:
  • tilegrid.js, line 199
Returns:
Tile range.
Type
ol.TileRange

getTileSize

Source:
  • tilegrid.js, line 304
Returns:
Tile size.
Type
ol.Size

getZForResolution

Parameters:
Name Type Description
resolution number Resolution.
Source:
  • tilegrid.js, line 313
Returns:
Z.
Type
number