Package org.mapfish.print.attribute.map
Class MapAttribute.OverriddenMapAttributeValues
java.lang.Object
org.mapfish.print.attribute.map.GenericMapAttribute.GenericMapAttributeValues
org.mapfish.print.attribute.map.MapAttribute.MapAttributeValues
org.mapfish.print.attribute.map.MapAttribute.OverriddenMapAttributeValues
- Enclosing class:
- MapAttribute
A wrapper around a
MapAttribute.MapAttributeValues
instance and an OverviewMapAttribute.OverviewMapAttributeValues
instance, which is used to render the overview map.
If attributes on the OverviewMapAttribute.OverviewMapAttributeValues
instance are set, those attributes
will be returned, otherwise the ones on MapAttribute.MapAttributeValues
.
-
Field Summary
Fields inherited from class org.mapfish.print.attribute.map.MapAttribute.MapAttributeValues
areaOfInterest, bbox, center, dpi, layers, scale, zoomToFeatures
Fields inherited from class org.mapfish.print.attribute.map.GenericMapAttribute.GenericMapAttributeValues
DEFAULT_PROJECTION, dpiSensitiveStyle, height, longitudeFirst, pdfA, projection, rotation, useAdjustBounds, useNearestScale, width
-
Constructor Summary
ConstructorsConstructorDescriptionOverriddenMapAttributeValues
(MapAttribute.MapAttributeValues params, OverviewMapAttribute.OverviewMapAttributeValues paramOverrides, Template template) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal MapBounds
Custom bounds for the overview-map.final Double
getDpi()
Return the DPI value for the map.final MapBounds
The bounds used to render the overview-map.final MapBounds
The bounds of the original map that this overview-map is associated to.final Double
Gets the rotation.final ZoomLevels
final ZoomLevelSnapStrategy
final Double
final Boolean
Return true if requestData has useNearestScale and configuration has some zoom levels defined.final Boolean
Return true if requestData has useNearestScale and configuration has some zoom levels defined.final void
setMapExtentLayer
(MapLayer mapExtentLayer) final void
setZoomedOutBounds
(MapBounds zoomedOutBounds) Methods inherited from class org.mapfish.print.attribute.map.MapAttribute.MapAttributeValues
copy, getProjection, getRawLayers, getWithOverrides, getZoomSnapGeodetic, postConstruct, recalculateBounds, setMapBounds, setRawLayers
Methods inherited from class org.mapfish.print.attribute.map.GenericMapAttribute.GenericMapAttributeValues
getDpiSuggestions, getHeight, getMapSize, getTemplate, getValueOr, getWidth, isDpiSensitiveStyle, parseProjection, replaceLayer
-
Constructor Details
-
OverriddenMapAttributeValues
public OverriddenMapAttributeValues(MapAttribute.MapAttributeValues params, OverviewMapAttribute.OverviewMapAttributeValues paramOverrides, Template template) Constructor.- Parameters:
params
- The fallback parameters.paramOverrides
- The parameters explicitly defined for the overview map.template
- The template this map is part of.
-
-
Method Details
-
getMapBounds
The bounds used to render the overview-map.- Overrides:
getMapBounds
in classMapAttribute.MapAttributeValues
-
getCustomBounds
Custom bounds for the overview-map. Overwrites the bounds of the original map. -
getOriginalBounds
The bounds of the original map that this overview-map is associated to. -
setZoomedOutBounds
-
getDpi
Description copied from class:GenericMapAttribute.GenericMapAttributeValues
Return 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.- Overrides:
getDpi
in classMapAttribute.MapAttributeValues
-
getZoomSnapTolerance
- Overrides:
getZoomSnapTolerance
in classMapAttribute.MapAttributeValues
-
getZoomLevelSnapStrategy
- Overrides:
getZoomLevelSnapStrategy
in classMapAttribute.MapAttributeValues
-
getZoomLevels
- Overrides:
getZoomLevels
in classGenericMapAttribute.GenericMapAttributeValues
-
getRotation
Description copied from class:GenericMapAttribute.GenericMapAttributeValues
Gets the rotation.- Overrides:
getRotation
in classMapAttribute.MapAttributeValues
- Returns:
- the rotation
-
isUseAdjustBounds
Description copied from class:GenericMapAttribute.GenericMapAttributeValues
Return true if requestData has useNearestScale and configuration has some zoom levels defined.- Overrides:
isUseAdjustBounds
in classMapAttribute.MapAttributeValues
-
isUseNearestScale
Description copied from class:GenericMapAttribute.GenericMapAttributeValues
Return true if requestData has useNearestScale and configuration has some zoom levels defined.- Overrides:
isUseNearestScale
in classMapAttribute.MapAttributeValues
-
setMapExtentLayer
-
getLayers
- Overrides:
getLayers
in classGenericMapAttribute.GenericMapAttributeValues
-