public final class WmsLayer extends AbstractSingleImageLayer
MapLayer.RenderType| Modifier | Constructor and Description |
|---|---|
protected |
WmsLayer(java.util.concurrent.ExecutorService executorService,
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
WmsLayerParam params,
com.codahale.metrics.MetricRegistry registry,
Configuration configuration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cacheResources(HttpRequestCache httpRequestCache,
MfClientHttpRequestFactory requestFactory,
MapfishMapContext transformer,
java.lang.String jobId)
Cache any needed resources on disk.
|
WmsLayerParam |
getParams()
Get the HTTP params.
|
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.
|
boolean |
supportsNativeRotation()
If supported by the WMS server, a parameter "angle" can be set
on "customParams" or "mergeableParams".
|
getImageBufferScaling, getLayersgetFailOnError, getLayerTransformer, getName, getOpacity, prepareRender, render, tryAddLayerprotected WmsLayer(@Nonnull
java.util.concurrent.ExecutorService executorService,
@Nonnull
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
@Nonnull
WmsLayerParam params,
@Nonnull
com.codahale.metrics.MetricRegistry registry,
@Nonnull
Configuration configuration)
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.registry - the metrics registry.configuration - the configuration.protected java.awt.image.BufferedImage loadImage(@Nonnull
MfClientHttpRequestFactory requestFactory,
@Nonnull
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 WmsLayerParam getParams()
public boolean supportsNativeRotation()
supportsNativeRotation in interface MapLayersupportsNativeRotation in class AbstractGeotoolsLayerpublic MapLayer.RenderType getRenderType()
MapLayerpublic void cacheResources(@Nonnull
HttpRequestCache httpRequestCache,
@Nonnull
MfClientHttpRequestFactory requestFactory,
@Nonnull
MapfishMapContext transformer,
@Nonnull
java.lang.String jobId)
MapLayercacheResources in interface MapLayercacheResources in class AbstractGeotoolsLayerhttpRequestCache - TODOrequestFactory - client http request factorytransformer - transformerjobId - the job ID