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, height, longitudeFirst, projection, rotation, useAdjustBounds, useNearestScale, width| Constructor and Description |
|---|
OverviewMapAttributeValues(Template template)
Constructor.
|
OverviewMapAttributeValues(Template template,
java.lang.Integer width,
java.lang.Integer height)
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 definition.
|
java.lang.String |
getStyle() |
double |
getZoomFactor() |
void |
postConstruct()
Validate the values provided by the request data and construct MapBounds and parse the layers.
|
void |
setRawLayers(PArray newLayers)
Set the JSON layer definition.
|
getDpiSuggestions, getHeight, getLayers, getMapSize, getRotation, getTemplate, getValueOr, getWidth, getZoomLevels, getZoomLevelSnapStrategy, getZoomSnapGeodetic, getZoomSnapTolerance, isDpiSensitiveStyle, isUseAdjustBounds, isUseNearestScale, parseProjection, replaceLayerpublic 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 OverviewMapAttributeValues(Template template)
template - the template this map is part of.public OverviewMapAttributeValues(Template template, java.lang.Integer width, java.lang.Integer height)
template - the template this map is part of.width - the width of the map.height - the height 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 void setRawLayers(PArray newLayers)
GenericMapAttribute.GenericMapAttributeValuesGenericMapAttribute.GenericMapAttributeValues.getDpi().setRawLayers in class GenericMapAttribute.GenericMapAttributeValuesnewLayers - the new layerspublic double getZoomFactor()
public java.lang.String getStyle()
public java.lang.String getProjection()
getProjection in class GenericMapAttribute.GenericMapAttributeValues