public final class ImageLayer extends AbstractSingleImageLayer
Reads a image file from an URL.
| Modifier and Type | Class and Description |
|---|---|
static class |
ImageLayer.ImageLayerPlugin
Renders an image as layer.
|
static class |
ImageLayer.ImageParam
The parameters for reading an image file, either from the server or from a URL.
|
MapLayer.RenderTypeconfiguration, registry| Modifier | Constructor and Description |
|---|---|
protected |
ImageLayer(java.util.concurrent.ExecutorService executorService,
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
ImageLayer.ImageParam params,
Configuration configuration,
com.codahale.metrics.MetricRegistry registry)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
MapLayer.RenderType |
getRenderType()
Specify whether layer should be rendered as PNG, JPEG or SVG.
|
protected java.awt.image.BufferedImage |
loadImage(MfClientHttpRequestFactory requestFactory,
MapfishMapContext transformer)
Load the image at the requested size for the provided map bounds.
|
createErrorImage, fetchImage, getImageBufferScaling, getLayers, getStyleSuppliergetFailOnError, getLayerTransformer, getName, getOpacity, prefetchResources, prepareRender, render, supportsNativeRotation, tryAddLayerprotected ImageLayer(@Nonnull
java.util.concurrent.ExecutorService executorService,
@Nonnull
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
@Nonnull
ImageLayer.ImageParam params,
@Nonnull
Configuration configuration,
@Nonnull
com.codahale.metrics.MetricRegistry registry)
executorService - the thread pool for doing the rendering.styleSupplier - the style to use when drawing the constructed grid coverage on the map.params - the params from the request data.configuration - the configuration.registry - the metrics object.protected java.awt.image.BufferedImage loadImage(MfClientHttpRequestFactory requestFactory, MapfishMapContext transformer) throws java.lang.Throwable
AbstractSingleImageLayerloadImage in class AbstractSingleImageLayerrequestFactory - the factory to use for making http requeststransformer - object containing map rendering informationjava.lang.Throwablepublic MapLayer.RenderType getRenderType()
MapLayer