public final class OsmLayer extends AbstractTiledLayer
MapLayer.RenderTypeimageBufferScaling| Constructor and Description |
|---|
OsmLayer(jsr166y.ForkJoinPool forkJoinPool,
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
OsmLayerParam param,
com.codahale.metrics.MetricRegistry registry,
Configuration configuration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected TileCacheInformation |
createTileInformation(MapBounds bounds,
java.awt.Rectangle paintArea,
double dpi)
Create the tile cache information object for the given parameters.
|
MapLayer.RenderType |
getRenderType()
Specify whether layer should be rendered as PNG, JPEG or SVG.
|
cacheResources, getImageBufferScaling, getLayers, prepareRendergetFailOnError, getLayerTransformer, getName, render, supportsNativeRotation, tryAddLayerpublic OsmLayer(@Nonnull
jsr166y.ForkJoinPool forkJoinPool,
@Nonnull
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
@Nonnull
OsmLayerParam param,
@Nonnull
com.codahale.metrics.MetricRegistry registry,
@Nonnull
Configuration configuration)
forkJoinPool - the thread pool for doing the rendering.styleSupplier - strategy for loading the style for this layer.param - the information needed to create OSM requests.registry - the metrics registry.configuration - the configuration.protected TileCacheInformation createTileInformation(MapBounds bounds, java.awt.Rectangle paintArea, double dpi)
AbstractTiledLayercreateTileInformation in class AbstractTiledLayerbounds - the map boundspaintArea - the area to paintdpi - the DPI to render atpublic MapLayer.RenderType getRenderType()
MapLayer