public class ZoomToFeatures
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ZoomToFeatures.ZoomType
The zoom type.
|
| Modifier and Type | Field and 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 and Description |
|---|
ZoomToFeatures() |
| Modifier and Type | Method and Description |
|---|---|
ZoomToFeatures |
copy()
Make a copy.
|
public ZoomToFeatures.ZoomType zoomType
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.public java.lang.String layer
public java.lang.Double minScale
public java.lang.Integer minMargin
public final ZoomToFeatures copy()