public final class OverviewMapAttribute extends GenericMapAttribute
The attributes for an overview map (see !createOverviewMap processor).
[[examples=verboseExample,overviewmap_tyger_ny_EPSG_3857]]| Modifier and Type | Class and Description |
|---|---|
class |
OverviewMapAttribute.OverviewMapAttributeValues
The value of
MapAttribute. |
GenericMapAttribute.GenericMapAttributeValuesJSON_DPI_SUGGESTIONS, JSON_MAP_HEIGHT, JSON_MAP_WIDTH, JSON_MAX_DPI, JSON_MAX_HEIGHT, JSON_MAX_WIDTHJSON_ATTRIBUTE_DEFAULT, JSON_ATTRIBUTE_EMBEDDED_TYPE, JSON_ATTRIBUTE_IS_ARRAY, JSON_ATTRIBUTE_TYPE, JSON_CLIENT_INFO, JSON_CLIENT_PARAMS, JSON_NAME| Constructor and Description |
|---|
OverviewMapAttribute() |
| Modifier and Type | Method and Description |
|---|---|
OverviewMapAttribute.OverviewMapAttributeValues |
createValue(Template template)
Create an instance of a attribute value object.
|
java.lang.Class<OverviewMapAttribute.OverviewMapAttributeValues> |
getValueType()
Return the type created by
ReflectiveAttribute.createValue(Template). |
void |
setStyle(java.lang.String style)
The style name of a style to apply to the bbox rectangle of the original map during rendering.
|
void |
setZoomFactor(double zoomFactor)
The zoom factor by which the extent of the main map will be augmented to create an overview.
|
getClientInfo, getDpiSuggestions, getHeight, getMaxDpi, getMaxHeight, getMaxWidth, getWidth, parseProjection, setDpiSuggestions, setHeight, setMaxDpi, setMaxHeight, setMaxWidth, setWidth, setZoomLevels, setZoomLevelSnapStrategy, setZoomSnapGeodetic, setZoomSnapTolerance, validategetAttributeName, getDefaultValue, getValue, printClientConfig, setConfigName, setDefaultpublic void setZoomFactor(double zoomFactor)
zoomFactor - The zoom-factor.public void setStyle(java.lang.String style)
style - The style.public java.lang.Class<OverviewMapAttribute.OverviewMapAttributeValues> getValueType()
ReflectiveAttributeReflectiveAttribute.createValue(Template).getValueType in interface AttributegetValueType in class ReflectiveAttribute<GenericMapAttribute.GenericMapAttributeValues>public OverviewMapAttribute.OverviewMapAttributeValues createValue(Template template)
ReflectiveAttributeHasDefaultValue annotation then no
exception will be thrown if the json does not contain a value.
Fields in the object with the OneOf annotation must have one of the
fields in the request data.
StringIntegerFloatDoubleShortBooleanCharacterByteEnum()
method then it will be called after the fields are all set.
In the case where the a parameter type is a normal POJO (not a special case like PJsonObject, URL,
enum, double, etc...) then it will be assumed that the json data is a json object and the parameters
will be recursively parsed into the new object as if it is also MapLayer parameter object.
It is important to put values in the value object as public fields because reflection is used when
printing client config as well as generating documentation. If a field is intended for the client
software as information but is not intended to be set (or sent as part of the request data), the field
can be a final field.createValue in class ReflectiveAttribute<GenericMapAttribute.GenericMapAttributeValues>template - the template that this attribute is part of.