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)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cacheResources(HttpRequestCache httpRequestCache,
MfClientHttpRequestFactory requestFactory,
MapfishMapContext transformer)
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, prepareRender, render, tryAddLayerprotected WmsLayer(java.util.concurrent.ExecutorService executorService,
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
WmsLayerParam params,
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.registry - the metrics registry.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 WmsLayerParam getParams()
public boolean supportsNativeRotation()
supportsNativeRotation in interface MapLayersupportsNativeRotation in class AbstractGeotoolsLayerpublic MapLayer.RenderType getRenderType()
MapLayerpublic void cacheResources(HttpRequestCache httpRequestCache, MfClientHttpRequestFactory requestFactory, MapfishMapContext transformer)
MapLayercacheResources in interface MapLayercacheResources in class AbstractGeotoolsLayerhttpRequestCache - TODOrequestFactory - client http request factorytransformer - transformer