Package org.mapfish.print.attribute.map
Class ZoomToFeatures
- java.lang.Object
-
- org.mapfish.print.attribute.map.ZoomToFeatures
-
public class ZoomToFeatures extends java.lang.Object
Zoom the map to the features of a specific layer or all features of the map.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ZoomToFeatures.ZoomType
The zoom type.
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
layer
The name of the layer whose features will be used.java.lang.Integer
minMargin
The minimum margin (in px) from the features to the map border (default: 10).java.lang.Double
minScale
The minimum scale that the map is zoomed to.ZoomToFeatures.ZoomType
zoomType
The zoom type.
-
Constructor Summary
Constructors Constructor Description ZoomToFeatures()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZoomToFeatures
copy()
Make a copy.
-
-
-
Field Detail
-
zoomType
public ZoomToFeatures.ZoomType 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
public java.lang.String layer
The name of the layer whose features will be used. If not set, the features of all vector layers will be used.
-
minScale
public java.lang.Double minScale
The minimum scale that the map is zoomed to.
-
minMargin
public java.lang.Integer minMargin
The minimum margin (in px) from the features to the map border (default: 10).
-
-
Method Detail
-
copy
public final ZoomToFeatures copy()
Make a copy.
-
-