Class TileKey

  • java.lang.Object
    • com.here.sdk.mapview.datasource.TileKey

  • public final class TileKey
    extends java.lang.Object

    Key of a data source tile. Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      int level
      Level of the tile.
      int x
      X coordinate of the tile.
      int y
      Y coordinate of the tile.
    • Constructor Summary

      Constructors 
      Constructor Description
      TileKey​(int x, int y, int level)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • x

        public int x

        X coordinate of the tile. This ranges from 0 to 2^level − 1.

      • y

        public int y

        Y coordinate of the tile. This ranges from 0 to 2^level − 1.

      • level

        public int level

        Level of the tile. Supported range [0, 31].

    • Constructor Detail

      • TileKey

        public TileKey​(int x,
                       int y,
                       int level)

        Creates a new instance.

        Parameters:
        x -

        X coordinate of the tile. This ranges from 0 to 2^level − 1.

        y -

        Y coordinate of the tile. This ranges from 0 to 2^level − 1.

        level -

        Level of the tile. Supported range [0, 31].

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object