PilotGaea 2D O'view
    正在準備搜尋索引...

    類別 TileGrid

    Base class for setting the grid pattern for sources accessing tiled-image servers.

    Tile grid options.

    stable

    層級 (查看層級一覽)

    索引

    方法

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

      參數

      • extent: Extent

        Extent.

      • zoom: number

        Zoom level.

      • callback: (coords: TileCoord) => any

        Function called with each tile coordinate.

      回傳 void

    • Get the maximum zoom level for the grid.

      回傳 number

      Max zoom.

    • Get the minimum zoom level for the grid.

      回傳 number

      Min zoom.

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

      參數

      • z: number

        Z.

      回傳 Coordinate

      Origin.

      stable

    • Get the resolution for the given zoom level.

      參數

      • z: number

        Z.

      回傳 number

      Resolution.

      stable

    • Get the list of resolutions for the tile grid.

      回傳 number[]

      Resolutions.

      stable

    • Get the extent of a tile coordinate.

      參數

      • tileCoord: TileCoord

        Tile coordinate.

      • 可選opt_extent: Extent

        Temporary extent object.

      回傳 Extent

      Extent.

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

      參數

      • coordinate: Coordinate

        Coordinate.

      • resolution: number

        Resolution.

      • 可選opt_tileCoord: TileCoord

        Destination ol.TileCoord object.

      回傳 TileCoord

      Tile coordinate.

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

      參數

      • coordinate: Coordinate

        Coordinate.

      • z: number

        Zoom level.

      • 可選opt_tileCoord: TileCoord

        Destination ol.TileCoord object.

      回傳 TileCoord

      Tile coordinate.

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

      參數

      • z: number

        Z.

      回傳 number | Size

      Tile size.

      stable

    • 參數

      • resolution: number

        Resolution.

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

      回傳 number

      Z.

    構造函數

    • 參數

      回傳 TileGrid

      Base class for setting the grid pattern for sources accessing tiled-image servers.

      stable