TileGeoBoundsCalculator

public class TileGeoBoundsCalculator
extension TileGeoBoundsCalculator: NativeBase
extension TileGeoBoundsCalculator: Hashable

A calculator of geodetic bounds for tiles identified by keys generated in a particular tiling scheme (TilingScheme).

Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.

  • Creates an instance of TileGeoBoundsCalculator.

    Declaration

    Swift

    public init(_ tilingScheme: TilingScheme)

    Parameters

    tilingScheme

    The tiling scheme used for generating the tile keys that are to be supported by this instance.

  • Computes the geodetic bounds (as GeoBox) for a tile identified by TileKey.

    Declaration

    Swift

    public func boundsOf(_ tileKey: TileKey) -> GeoBox

    Parameters

    tileKey

    TileKey to compute geodetic bounds for. The geodetic bounds would be calculated relative to the tiling scheme provided at this TileGeoBoundsCalculator instance creation.

    Return Value

    The geodetic bounds of tile identified by given TileKey.