Package org.mapfish.print.map.tiled.osm
Class OsmLayer
java.lang.Object
org.mapfish.print.map.geotools.AbstractGeotoolsLayer
org.mapfish.print.map.tiled.AbstractTiledLayer<OsmLayerParam>
org.mapfish.print.map.tiled.osm.OsmLayer
- All Implemented Interfaces:
MapLayer
Strategy object for rendering Osm based layers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mapfish.print.attribute.map.MapLayer
MapLayer.LayerContext, MapLayer.RenderType
-
Field Summary
Fields inherited from interface org.mapfish.print.attribute.map.MapLayer
DEFAULT_SCALING
-
Constructor Summary
ConstructorsConstructorDescriptionOsmLayer
(ForkJoinPool forkJoinPool, StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier, OsmLayerParam param, com.codahale.metrics.MetricRegistry registry, Configuration configuration) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected TileInformation<OsmLayerParam>
createTileInformation
(MapBounds bounds, Rectangle paintArea, double dpi) Create the tile information object for the given parameters.Specify whether layer should be rendered as PNG, JPEG or SVG.Methods inherited from class org.mapfish.print.map.tiled.AbstractTiledLayer
getLayers, prefetchResources, prepareRender
Methods inherited from class org.mapfish.print.map.geotools.AbstractGeotoolsLayer
getFailOnError, getLayerTransformer, getName, getOpacity, prepareLayerRendering, render, supportsNativeRotation, tryAddLayer
-
Constructor Details
-
OsmLayer
public OsmLayer(@Nonnull ForkJoinPool forkJoinPool, @Nonnull StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier, @Nonnull OsmLayerParam param, @Nonnull com.codahale.metrics.MetricRegistry registry, @Nonnull Configuration configuration) Constructor.- Parameters:
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.
-
-
Method Details
-
createTileInformation
protected TileInformation<OsmLayerParam> createTileInformation(MapBounds bounds, Rectangle paintArea, double dpi) Description copied from class:AbstractTiledLayer
Create the tile information object for the given parameters.- Specified by:
createTileInformation
in classAbstractTiledLayer<OsmLayerParam>
- Parameters:
bounds
- the map boundspaintArea
- the area to paintdpi
- the DPI to render at
-
getRenderType
Description copied from interface:MapLayer
Specify whether layer should be rendered as PNG, JPEG or SVG.- Returns:
- render type
-