Package 

Class MapTileIndex


  • 
    public class MapTileIndex
    
                        

    Computes a map tile index as `long` to/from zoom/x/y Algorithm unfortunately different from SqlTileWriter.getIndex for historical reasons. This version is better, because it's easy to get zoom, X and Y back from the index. This version is limited to zooms between 0 and 29, which should be enough.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public static int mMaxZoomLevel
    • Method Summary

      Modifier and Type Method Description
      static long getTileIndex(int pZoom, int pX, int pY)
      static int getZoom(long pTileIndex)
      static int getX(long pTileIndex)
      static int getY(long pTileIndex)
      static String toString(int pZoom, int pX, int pY)
      static String toString(long pIndex)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getTileIndex

         static long getTileIndex(int pZoom, int pX, int pY)
      • getZoom

         static int getZoom(long pTileIndex)
      • getX

         static int getX(long pTileIndex)
      • getY

         static int getY(long pTileIndex)