@Test public void pixelXYToTileXY() { int[] tileXY = BingTileUtil.pixelXYToTileXY(250, 250); Assert.assertArrayEquals(new int[] {0, 0}, tileXY); tileXY = BingTileUtil.pixelXYToTileXY(250, 256); Assert.assertArrayEquals(new int[] {0, 1}, tileXY); tileXY = BingTileUtil.pixelXYToTileXY(511, 512); Assert.assertArrayEquals(new int[] {1, 2}, tileXY); tileXY = BingTileUtil.pixelXYToTileXY(1024, 1024); Assert.assertArrayEquals(new int[] {4, 4}, tileXY); }
public static int[] pixelXYToTileXY(int pixelX, int pixelY) { int tileX = pixelX / BingTile.DEFAULT_TILE_SIZE; int tileY = pixelY / BingTile.DEFAULT_TILE_SIZE; return new int[] {tileX, tileY}; }
BingTileUtil { public static int[] pixelXYToTileXY(int pixelX, int pixelY) { int tileX = pixelX / BingTile.DEFAULT_TILE_SIZE; int tileY = pixelY / BingTile.DEFAULT_TILE_SIZE; return new int[] {tileX, tileY}; } }
BingTileUtil { public static int[] pixelXYToTileXY(int pixelX, int pixelY) { int tileX = pixelX / BingTile.DEFAULT_TILE_SIZE; int tileY = pixelY / BingTile.DEFAULT_TILE_SIZE; return new int[] {tileX, tileY}; } private  BingTileUtil(); }
BingTileUtil { public static int[] pixelXYToTileXY(int pixelX, int pixelY) { int tileX = pixelX / BingTile.DEFAULT_TILE_SIZE; int tileY = pixelY / BingTile.DEFAULT_TILE_SIZE; return new int[] {tileX, tileY}; } private  BingTileUtil(); static int[] lonLatToPixelXY(double longitude, double latitude, int zoomLevel); static double[] pixelXYToLonLat(int pixelX, int pixelY, int zoomLevel); static int mapSize(int zoomLevel); static int[] pixelXYToTileXY(int pixelX, int pixelY); static String tileXYToQuadKey(int tileX, int tileY, int zoomLevel); static String lonLatToQuadKey(double lon, double lat, int zoomLevel); static ReferencedEnvelope getTileBoundingBox(double lon, double lat, int zoomLevel); }
BingTileUtil { public static int[] pixelXYToTileXY(int pixelX, int pixelY) { int tileX = pixelX / BingTile.DEFAULT_TILE_SIZE; int tileY = pixelY / BingTile.DEFAULT_TILE_SIZE; return new int[] {tileX, tileY}; } private  BingTileUtil(); static int[] lonLatToPixelXY(double longitude, double latitude, int zoomLevel); static double[] pixelXYToLonLat(int pixelX, int pixelY, int zoomLevel); static int mapSize(int zoomLevel); static int[] pixelXYToTileXY(int pixelX, int pixelY); static String tileXYToQuadKey(int tileX, int tileY, int zoomLevel); static String lonLatToQuadKey(double lon, double lat, int zoomLevel); static ReferencedEnvelope getTileBoundingBox(double lon, double lat, int zoomLevel);  }