public interface MapLayer
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
The layer name.
|
void |
render(java.awt.Graphics2D graphics2D,
MfClientHttpRequestFactory clientHttpRequestFactory,
MapfishMapContext transformer,
boolean isFirstLayer)
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.void render(java.awt.Graphics2D graphics2D,
MfClientHttpRequestFactory clientHttpRequestFactory,
MapfishMapContext transformer,
boolean isFirstLayer)
graphics2D - the graphics object.clientHttpRequestFactory - The factory to use for making http requests.transformer - the map transformer containing the map bounds and sizeisFirstLayer - true indicates this layer is the first layer in the map (the first layer drawn, ie the base layer)boolean supportsNativeRotation()
java.lang.String getName()