Package org.mapfish.print.attribute.map
Class OverviewMapAttribute.OverviewMapAttributeValues
java.lang.Object
org.mapfish.print.attribute.map.GenericMapAttribute.GenericMapAttributeValues
org.mapfish.print.attribute.map.OverviewMapAttribute.OverviewMapAttributeValues
- Enclosing class:
OverviewMapAttribute
public final class OverviewMapAttribute.OverviewMapAttributeValues
extends GenericMapAttribute.GenericMapAttributeValues
The value of
MapAttribute.-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble[]An array of 4 doubles, minX, minY, maxX, maxY.double[]An array of 2 doubles, (x, y).The output dpi of the printed map.The json with all the layer information.Ifcenteris defined then this is the scale of the map centered atcenter.Fields inherited from class org.mapfish.print.attribute.map.GenericMapAttribute.GenericMapAttributeValues
DEFAULT_PROJECTION, dpiSensitiveStyle, height, longitudeFirst, pdfA, projection, rotation, useAdjustBounds, useNearestScale, width -
Constructor Summary
ConstructorsConstructorDescriptionOverviewMapAttributeValues(Template template) Constructor.OverviewMapAttributeValues(Template template, Integer width, Integer height) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetDpi()Return the DPI value for the map.Return the JSON layer definition.getStyle()doublevoidValidate the values provided by the request data and construct MapBounds and parse the layers.voidsetRawLayers(PArray newLayers) Set the JSON layer definition.Methods inherited from class org.mapfish.print.attribute.map.GenericMapAttribute.GenericMapAttributeValues
getDpiSuggestions, getHeight, getLayers, getMapSize, getRotation, getTemplate, getValueOr, getWidth, getZoomLevels, getZoomLevelSnapStrategy, getZoomSnapGeodetic, getZoomSnapTolerance, isDpiSensitiveStyle, isUseAdjustBounds, isUseNearestScale, parseProjection, replaceLayer
-
Field Details
-
layers
The json with all the layer information. This will be parsed in postConstruct into a list of layers and therefore this field should not normally be accessed. -
dpi
The output dpi of the printed map. -
bbox
public double[] bboxAn array of 4 doubles, minX, minY, maxX, maxY. The bounding box of the overview-map.If a bounding box is given, the overview-map shows a fixed extent. The configuration parameter
zoomFactoris ignored in this case. -
center
public double[] centerAn array of 2 doubles, (x, y). The center of the overview-map.If center and scale are given, the overview-map shows a fixed extent. The configuration parameter
zoomFactoris ignored in this case. -
scale
Ifcenteris defined then this is the scale of the map centered atcenter.
-
-
Constructor Details
-
OverviewMapAttributeValues
Constructor.- Parameters:
template- the template this map is part of.
-
OverviewMapAttributeValues
Constructor.- Parameters:
template- the template this map is part of.width- the width of the map.height- the height of the map.
-
-
Method Details
-
postConstruct
public void postConstruct() throws org.geotools.api.referencing.FactoryExceptionDescription copied from class:GenericMapAttribute.GenericMapAttributeValuesValidate the values provided by the request data and construct MapBounds and parse the layers.- Overrides:
postConstructin classGenericMapAttribute.GenericMapAttributeValues- Throws:
org.geotools.api.referencing.FactoryException
-
getMapBounds
-
getDpi
Description copied from class:GenericMapAttribute.GenericMapAttributeValuesReturn the DPI value for the map. This method is abstract because the dpi value is optional for the overview map, but must be given for the normal map. So, in the overview map the field is defined with a @HasDefaultValue annotation.- Specified by:
getDpiin classGenericMapAttribute.GenericMapAttributeValues
-
getRawLayers
Description copied from class:GenericMapAttribute.GenericMapAttributeValuesReturn the JSON layer definition. This method is abstract for the same reasons asGenericMapAttribute.GenericMapAttributeValues.getDpi().- Specified by:
getRawLayersin classGenericMapAttribute.GenericMapAttributeValues
-
setRawLayers
Description copied from class:GenericMapAttribute.GenericMapAttributeValuesSet the JSON layer definition. This method is abstract for the same reasons asGenericMapAttribute.GenericMapAttributeValues.getDpi().- Specified by:
setRawLayersin classGenericMapAttribute.GenericMapAttributeValues- Parameters:
newLayers- the new layers
-
getZoomFactor
public double getZoomFactor() -
getStyle
-
getProjection
- Overrides:
getProjectionin classGenericMapAttribute.GenericMapAttributeValues
-