Package org.mapfish.print.attribute.map
Class ZoomToFeatures
java.lang.Object
org.mapfish.print.attribute.map.ZoomToFeatures
Zoom the map to the features of a specific layer or all features of the map.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe name of the layer whose features will be used.The minimum margin (in px) from the features to the map border (default: 10).The minimum scale that the map is zoomed to.The zoom type. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
zoomType
The zoom type. Possible values:extent
(default): Set the extent of the map so that all features are visible.center
: Set the center of the map to the center of the extent of the features.
-
layer
The name of the layer whose features will be used. If not set, the features of all vector layers will be used. -
minScale
The minimum scale that the map is zoomed to. -
minMargin
The minimum margin (in px) from the features to the map border (default: 10).
-
-
Constructor Details
-
ZoomToFeatures
public ZoomToFeatures()
-
-
Method Details
-
copy
Make a copy.
-