@Test public void testReprojectOne() throws Exception { Envelope googleEnvelope = new Envelope(10000, 10010, 5000, 5010); Crs google = geoService.getCrs2("EPSG:900913"); Crs latlon = geoService.getCrs2("EPSG:4326"); Envelope latlonEnvelope = geoService.transform(JTS.toGeometry(googleEnvelope), google, latlon) .getEnvelopeInternal(); double latlonScale = ZOOMED_IN_SCALE * googleEnvelope.getWidth() / latlonEnvelope.getWidth(); List<RasterTile> tiles = osm.paint(latlon, latlonEnvelope, latlonScale); Assert.assertEquals(1, tiles.size()); RasterTile tile = tiles.get(0); Assert.assertEquals("http: Assert.assertEquals(4, tile.getCode().getTileLevel()); Assert.assertEquals(8, tile.getCode().getX()); Assert.assertEquals(7, tile.getCode().getY()); Assert.assertEquals(0.0, tile.getBounds().getX(), DELTA); Assert.assertEquals(-244.0, tile.getBounds().getY(), DELTA); Assert.assertEquals(244.0, tile.getBounds().getHeight(), DELTA); Assert.assertEquals(250.0, tile.getBounds().getWidth(), DELTA); }
public List<RasterTile> paint(CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale) throws GeomajasException { return tileService.paint(tileServiceState, boundsCrs, bounds, scale); }
OsmLayer implements RasterLayer { public List<RasterTile> paint(CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale) throws GeomajasException { return tileService.paint(tileServiceState, boundsCrs, bounds, scale); } }
OsmLayer implements RasterLayer { public List<RasterTile> paint(CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale) throws GeomajasException { return tileService.paint(tileServiceState, boundsCrs, bounds, scale); }  }
OsmLayer implements RasterLayer { public List<RasterTile> paint(CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale) throws GeomajasException { return tileService.paint(tileServiceState, boundsCrs, bounds, scale); }  String getId(); @Api void setId(String id); CoordinateReferenceSystem getCrs(); @Api void setMaxZoomLevel(int maxZoomLevel); RasterLayerInfo getLayerInfo(); @Api void setLayerInfo(RasterLayerInfo layerInfo); @Api void setTileUrls(List<String> tileUrls); @Api void setUrlSelectionStrategy(UrlSelectionStrategy strategy); List<RasterTile> paint(CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale); }
OsmLayer implements RasterLayer { public List<RasterTile> paint(CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale) throws GeomajasException { return tileService.paint(tileServiceState, boundsCrs, bounds, scale); }  String getId(); @Api void setId(String id); CoordinateReferenceSystem getCrs(); @Api void setMaxZoomLevel(int maxZoomLevel); RasterLayerInfo getLayerInfo(); @Api void setLayerInfo(RasterLayerInfo layerInfo); @Api void setTileUrls(List<String> tileUrls); @Api void setUrlSelectionStrategy(UrlSelectionStrategy strategy); List<RasterTile> paint(CoordinateReferenceSystem boundsCrs, Envelope bounds, double scale); static final int DEFAULT_MAX_ZOOM_LEVEL; static final int TILE_SIZE; @Api
	static final List<String> OPEN_STREET_MAP_URLS; @Api
	static final List<String> OPEN_CYCLE_MAP_URLS; @Deprecated
	static final List<String> TILES_AT_HOME_MAP_URLS; }