Class Tiles.Tile

java.lang.Object
dev.avelar.mapnik.Tiles.Tile
Enclosing class:
Tiles

public static final class Tiles.Tile extends Object
One tile of the grid.
  • Constructor Details

  • Method Details

    • z

      public int z()
    • x

      public int x()
    • y

      public int y()
    • bounds

      public Box2d bounds()
      The tile's area in Web Mercator metres.
    • lonLatBounds

      public Box2d lonLatBounds()
      The tile's area in degrees of longitude and latitude.
    • tmsY

      public int tmsY()
      The y of this tile in the TMS scheme, which counts from the bottom.
    • parent

      public Tiles.Tile parent()
      The tile one zoom out that contains this one. Throws IllegalStateException at zoom 0.
    • children

      public List<Tiles.Tile> children()
      The four tiles one zoom in, top left, top right, bottom left, bottom right.
    • quadKey

      public String quadKey()
      Bing-style quadkey: one digit per zoom, 0 to 3. Empty at zoom 0.
    • fromQuadKey

      public static Tiles.Tile fromQuadKey(String key)
      The tile a quadkey names.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object