locar-tiler
    Preparing search index...

    Class Tile

    Represents an XYZ tile. Does not include the tile data, please see the DataTile interface for this.

    Index

    Constructors

    • Creates a new Tile.

      Parameters

      • x: number

        the x coordinate of the tile.

      • y: number

        the y coordinate of the tile.

      • z: number

        the zoom of the tile.

      Returns Tile

    Properties

    x: number

    the x coordinate of the tile.

    y: number

    the y coordinate of the tile.

    z: number

    the zoom of the tile.

    Methods

    • Get the bottom left coordinate of the tile.

      Returns EastNorth

      the bottom left coordinate of the tile in Spherical Mercator "metres".

    • Get the index of the tile.

      Returns string

      a string indexing the tile in format z/x/y

    • Get the number of Spherical Mercator "metres" in a given tile.

      Returns number

      the number of Spherical Mercator "metres" in a given tile.

    • Get the top right coordinate of the tile.

      Returns EastNorth

      the top right coordinate of the tile in Spherical Mercator "metres".