public final class WmsLayer extends AbstractSingleImageLayer
| Modifier | Constructor and Description |
|---|---|
protected |
WmsLayer(java.util.concurrent.ExecutorService executorService,
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
WmsLayerParam params)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
WmsLayerParam |
getParams()
Get the HTTP params.
|
protected java.awt.image.BufferedImage |
loadImage(MfClientHttpRequestFactory requestFactory,
MapfishMapContext transformer,
boolean isFirstLayer)
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".
|
getLayersgetFailOnError, getName, render, tryAddLayerprotected WmsLayer(java.util.concurrent.ExecutorService executorService,
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
WmsLayerParam params)
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.protected java.awt.image.BufferedImage loadImage(MfClientHttpRequestFactory requestFactory, MapfishMapContext transformer, boolean isFirstLayer) throws java.lang.Throwable
AbstractSingleImageLayerloadImage in class AbstractSingleImageLayerrequestFactory - the factory to use for making http requeststransformer - object containing map rendering informationisFirstLayer - true indicates this layer is the first layer in the map (the first layer drawn, ie the base layer)java.lang.Throwablepublic WmsLayerParam getParams()
public boolean supportsNativeRotation()
supportsNativeRotation in interface MapLayersupportsNativeRotation in class AbstractGeotoolsLayer