public interface MapLayer
| Modifier and Type | Interface and Description |
|---|---|
static class |
MapLayer.RenderType
Enumerated type to specify whether layer should be rendered as PNG, JPEG or SVG.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cacheResources(HttpRequestCache httpRequestCache,
MfClientHttpRequestFactory clientHttpRequestFactory,
MapfishMapContext transformer,
java.lang.String jobId)
Cache any needed resources on disk.
|
double |
getImageBufferScaling()
Get the scale ratio between the tiles resolution and the target resolution.
|
java.lang.String |
getName()
The layer name.
|
double |
getOpacity()
Gets the opacity.
|
MapLayer.RenderType |
getRenderType()
Specify whether layer should be rendered as PNG, JPEG or SVG.
|
void |
prepareRender(MapfishMapContext transformer)
Render the layer to the graphics2D object.
|
void |
render(java.awt.Graphics2D graphics2D,
MfClientHttpRequestFactory clientHttpRequestFactory,
MapfishMapContext transformer,
java.lang.String jobId)
Render the layer to the graphics2D object.
|
boolean |
supportsNativeRotation()
Indicate if the layer supports native rotation (e.g.
|
com.google.common.base.Optional<MapLayer> |
tryAddLayer(MapLayer newLayer)
Attempt to add the layer this layer so that both can be rendered as a single layer.
|
com.google.common.base.Optional<MapLayer> tryAddLayer(MapLayer newLayer)
newLayer - the layer to combine with this layer. The new layer will be rendered below the current layer.double getImageBufferScaling()
void prepareRender(MapfishMapContext transformer)
transformer - the map transformer containing the map bounds and size.void render(java.awt.Graphics2D graphics2D,
MfClientHttpRequestFactory clientHttpRequestFactory,
MapfishMapContext transformer,
java.lang.String jobId)
graphics2D - the graphics object.clientHttpRequestFactory - The factory to use for making http requests.transformer - the map transformer containing the map bounds and size.jobId - the job IDboolean supportsNativeRotation()
java.lang.String getName()
MapLayer.RenderType getRenderType()
void cacheResources(HttpRequestCache httpRequestCache, MfClientHttpRequestFactory clientHttpRequestFactory, MapfishMapContext transformer, java.lang.String jobId)
httpRequestCache - TODOclientHttpRequestFactory - client http request factorytransformer - transformerjobId - the job IDdouble getOpacity()