Classdesc

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

Param: options

WMTS options.

Struct

Api

Hierarchy

Constructors

Methods

  • Call a function with each tile coordinate for a given extent and zoom level.

    Parameters

    • extent: Extent

      Extent.

    • zoom: number

      Zoom level.

    • callback: ((coords) => any)

      Function called with each tile coordinate.

        • (coords): any
        • Parameters

          Returns any

    Returns void

    Api

  • Get the list of matrix identifiers.

    Returns string[]

    MatrixIds.

    Api

  • Get the maximum zoom level for the grid.

    Returns number

    Max zoom.

    Api

  • Get the minimum zoom level for the grid.

    Returns number

    Min zoom.

    Api

  • Get the origin for the grid at the given zoom level.

    Parameters

    • z: number

      Z.

    Returns Coordinate

    Origin.

    Api

    stable

  • Get the resolution for the given zoom level.

    Parameters

    • z: number

      Z.

    Returns number

    Resolution.

    Api

    stable

  • Get the list of resolutions for the tile grid.

    Returns number[]

    Resolutions.

    Api

    stable

  • Get the extent of a tile coordinate.

    Parameters

    • tileCoord: TileCoord

      Tile coordinate.

    • Optional opt_extent: Extent

      Temporary extent object.

    Returns Extent

    Extent.

    Api

  • 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.

    Parameters

    • coordinate: Coordinate

      Coordinate.

    • resolution: number

      Resolution.

    • Optional opt_tileCoord: TileCoord

      Destination ol.TileCoord object.

    Returns TileCoord

    Tile coordinate.

    Api

  • Get a tile coordinate given a map coordinate and zoom level.

    Parameters

    • coordinate: Coordinate

      Coordinate.

    • z: number

      Zoom level.

    • Optional opt_tileCoord: TileCoord

      Destination ol.TileCoord object.

    Returns TileCoord

    Tile coordinate.

    Api

  • Get the tile size for a zoom level. The type of the return value matches the tileSize or tileSizes that the tile grid was configured with. To always get an ol.Size, run the result through ol.size.toSize().

    Parameters

    • z: number

      Z.

    Returns number | Size

    Tile size.

    Api

    stable

  • Parameters

    • resolution: number

      Resolution.

    • Optional opt_direction: number

      If 0, the nearest resolution will be used. If 1, the nearest lower resolution will be used. If -1, the nearest higher resolution will be used. Default is 0.

    Returns number

    Z.

    Api

  • Create a tile grid from a WMTS capabilities matrix set.

    Parameters

    • matrixSet: Object

      An object representing a matrixSet in the capabilities document.

    • Optional opt_extent: Extent

      An optional extent to restrict the tile ranges the server provides.

    Returns ol.tilegrid.WMTS

    WMTS tileGrid instance.

    Api

Generated using TypeDoc