public final class OsmLayer extends AbstractTiledLayer
| Constructor and Description |
|---|
OsmLayer(jsr166y.ForkJoinPool forkJoinPool,
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
OsmLayerParam param)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected TileCacheInformation |
createTileInformation(MapBounds bounds,
java.awt.Rectangle paintArea,
double dpi,
boolean isFirstLayer)
Create the tile cache information object for the given parameters.
|
getLayersgetFailOnError, getName, render, supportsNativeRotation, tryAddLayerpublic OsmLayer(jsr166y.ForkJoinPool forkJoinPool,
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
OsmLayerParam param)
forkJoinPool - the thread pool for doing the rendering.styleSupplier - strategy for loading the style for this layerparam - the information needed to create OSM requests.protected TileCacheInformation createTileInformation(MapBounds bounds, java.awt.Rectangle paintArea, double dpi, boolean isFirstLayer)
AbstractTiledLayercreateTileInformation in class AbstractTiledLayerbounds - the map boundspaintArea - the area to paintdpi - the DPI to render atisFirstLayer - true indicates this layer is the first layer in the map (the first layer drawn, ie the base layer)