public final class OverviewMapAttribute.OverviewMapAttributeValues extends GenericMapAttribute.GenericMapAttributeValues
MapAttribute.| Modifier and Type | Field and Description |
|---|---|
double[] |
bbox
An array of 4 doubles, minX, minY, maxX, maxY.
|
double[] |
center
An array of 2 doubles, (x, y).
|
java.lang.Double |
dpi
The output dpi of the printed map.
|
PArray |
layers
The json with all the layer information.
|
java.lang.Double |
scale
If
center is defined then this is the scale of the map centered at center. |
DEFAULT_PROJECTION, dpiSensitiveStyle, longitudeFirst, projection, rotation, useAdjustBounds, useNearestScale| Constructor and Description |
|---|
OverviewMapAttribute.OverviewMapAttributeValues(Template template,
java.awt.Dimension mapSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getDpi()
Return the DPI value for the map.
|
MapBounds |
getMapBounds() |
java.lang.String |
getProjection() |
PArray |
getRawLayers()
Return the JSON layer definiton.
|
java.lang.String |
getStyle() |
double |
getZoomFactor() |
void |
postConstruct()
Validate the values provided by the request data and construct MapBounds and parse the layers.
|
getDpiSuggestions, getLayers, getMapSize, getRequestorDPI, getRotation, getTemplate, getValueOr, getZoomLevels, getZoomLevelSnapStrategy, getZoomSnapGeodetic, getZoomSnapTolerance, isDpiSensitiveStyle, isUseAdjustBounds, isUseNearestScale, parseProjectionpublic PArray layers
public java.lang.Double dpi
public double[] bbox
zoomFactor is ignored in this case.public double[] center
zoomFactor is ignored in this case.public java.lang.Double scale
center is defined then this is the scale of the map centered at center.public OverviewMapAttribute.OverviewMapAttributeValues(Template template, java.awt.Dimension mapSize)
template - the template this map is part of.mapSize - the size of the map.public void postConstruct()
throws org.opengis.referencing.FactoryException
GenericMapAttribute.GenericMapAttributeValuespostConstruct in class GenericMapAttribute.GenericMapAttributeValuesorg.opengis.referencing.FactoryExceptionpublic MapBounds getMapBounds()
public java.lang.Double getDpi()
GenericMapAttribute.GenericMapAttributeValuesgetDpi in class GenericMapAttribute.GenericMapAttributeValuespublic PArray getRawLayers()
GenericMapAttribute.GenericMapAttributeValuesGenericMapAttribute.GenericMapAttributeValues.getDpi().getRawLayers in class GenericMapAttribute.GenericMapAttributeValuespublic double getZoomFactor()
public java.lang.String getStyle()
public java.lang.String getProjection()
getProjection in class GenericMapAttribute.GenericMapAttributeValues