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, zoomToFeaturesFields 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 MapBoundsCustom bounds for the overview-map.final DoublegetDpi()Return the DPI value for the map.final MapBoundsThe bounds used to render the overview-map.final MapBoundsThe bounds of the original map that this overview-map is associated to.final DoubleGets the rotation.final ZoomLevelsfinal ZoomLevelSnapStrategyfinal Doublefinal BooleanReturn true if requestData has useNearestScale and configuration has some zoom levels defined.final BooleanReturn true if requestData has useNearestScale and configuration has some zoom levels defined.final voidsetMapExtentLayer(MapLayer mapExtentLayer) final voidsetZoomedOutBounds(MapBounds zoomedOutBounds) Methods inherited from class org.mapfish.print.attribute.map.MapAttribute.MapAttributeValues
copy, getPagingOverviewLayer, getProjection, getRawLayers, getWithOverrides, getZoomSnapGeodetic, postConstruct, recalculateBounds, setMapBounds, setPagingOverviewLayer, setRawLayersMethods 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:
getMapBoundsin 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.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.- Overrides:
getDpiin classMapAttribute.MapAttributeValues
-
getZoomSnapTolerance
- Overrides:
getZoomSnapTolerancein classMapAttribute.MapAttributeValues
-
getZoomLevelSnapStrategy
- Overrides:
getZoomLevelSnapStrategyin classMapAttribute.MapAttributeValues
-
getZoomLevels
- Overrides:
getZoomLevelsin classGenericMapAttribute.GenericMapAttributeValues
-
getRotation
Description copied from class:GenericMapAttribute.GenericMapAttributeValuesGets the rotation.- Overrides:
getRotationin classMapAttribute.MapAttributeValues- Returns:
- the rotation
-
isUseAdjustBounds
Description copied from class:GenericMapAttribute.GenericMapAttributeValuesReturn true if requestData has useNearestScale and configuration has some zoom levels defined.- Overrides:
isUseAdjustBoundsin classMapAttribute.MapAttributeValues
-
isUseNearestScale
Description copied from class:GenericMapAttribute.GenericMapAttributeValuesReturn true if requestData has useNearestScale and configuration has some zoom levels defined.- Overrides:
isUseNearestScalein classMapAttribute.MapAttributeValues
-
setMapExtentLayer
-
getLayers
- Overrides:
getLayersin classGenericMapAttribute.GenericMapAttributeValues
-