@Test public void testGetTileFromCoordinate() { Tile tile = factory.findTileAtCoordinate(51, 7, new WebMercatorZoomLevel(5), createService()); TileService service = createService(); BingTile expectedTile = new BingTile(20, 15, new WebMercatorZoomLevel(5), service); Assert.assertEquals(expectedTile, tile); }
public Tile findTileAtCoordinate( double lon, double lat, ZoomLevel zoomLevel, TileService service) { int[] tileXY = BingTileUtil.lonLatToPixelXY(lon, lat, zoomLevel.getZoomLevel()); int colX = (int) Math.floor(tileXY[0] / BingTile.DEFAULT_TILE_SIZE); int rowY = (int) Math.floor(tileXY[1] / BingTile.DEFAULT_TILE_SIZE); return new BingTile(colX, rowY, zoomLevel, service); }
BingTileFactory extends WebMercatorTileFactory { public Tile findTileAtCoordinate( double lon, double lat, ZoomLevel zoomLevel, TileService service) { int[] tileXY = BingTileUtil.lonLatToPixelXY(lon, lat, zoomLevel.getZoomLevel()); int colX = (int) Math.floor(tileXY[0] / BingTile.DEFAULT_TILE_SIZE); int rowY = (int) Math.floor(tileXY[1] / BingTile.DEFAULT_TILE_SIZE); return new BingTile(colX, rowY, zoomLevel, service); } }
BingTileFactory extends WebMercatorTileFactory { public Tile findTileAtCoordinate( double lon, double lat, ZoomLevel zoomLevel, TileService service) { int[] tileXY = BingTileUtil.lonLatToPixelXY(lon, lat, zoomLevel.getZoomLevel()); int colX = (int) Math.floor(tileXY[0] / BingTile.DEFAULT_TILE_SIZE); int rowY = (int) Math.floor(tileXY[1] / BingTile.DEFAULT_TILE_SIZE); return new BingTile(colX, rowY, zoomLevel, service); }  }
BingTileFactory extends WebMercatorTileFactory { public Tile findTileAtCoordinate( double lon, double lat, ZoomLevel zoomLevel, TileService service) { int[] tileXY = BingTileUtil.lonLatToPixelXY(lon, lat, zoomLevel.getZoomLevel()); int colX = (int) Math.floor(tileXY[0] / BingTile.DEFAULT_TILE_SIZE); int rowY = (int) Math.floor(tileXY[1] / BingTile.DEFAULT_TILE_SIZE); return new BingTile(colX, rowY, zoomLevel, service); }  Tile findTileAtCoordinate(
            double lon, double lat, ZoomLevel zoomLevel, TileService service); @Override Tile findRightNeighbour(Tile tile, TileService service); @Override Tile findLowerNeighbour(Tile tile, TileService service); }
BingTileFactory extends WebMercatorTileFactory { public Tile findTileAtCoordinate( double lon, double lat, ZoomLevel zoomLevel, TileService service) { int[] tileXY = BingTileUtil.lonLatToPixelXY(lon, lat, zoomLevel.getZoomLevel()); int colX = (int) Math.floor(tileXY[0] / BingTile.DEFAULT_TILE_SIZE); int rowY = (int) Math.floor(tileXY[1] / BingTile.DEFAULT_TILE_SIZE); return new BingTile(colX, rowY, zoomLevel, service); }  Tile findTileAtCoordinate(
            double lon, double lat, ZoomLevel zoomLevel, TileService service); @Override Tile findRightNeighbour(Tile tile, TileService service); @Override Tile findLowerNeighbour(Tile tile, TileService service);  }