public static class SnappingManager.LayerInfos
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static SnappingManager.LayerInfos |
create()
Create new LayerInfos object.
|
static SnappingManager.LayerInfos |
create(Layer layer,
boolean snapToPoint,
boolean snapToVertex,
boolean snapToEdge)
Create new LayerInfos object.
|
void |
setLayer(Layer layer)
Set the layer parameter.
|
void |
setSnapToEdge(boolean snapToEdge)
Set the snapToEdge parameter.
|
void |
setSnapToPoint(boolean snapToPoint)
Set the snapToPoint parameter.
|
void |
setSnapToVertex(boolean snapToVertex)
Set the snapToVertex parameter.
|
public static SnappingManager.LayerInfos create()
public static SnappingManager.LayerInfos create(Layer layer, boolean snapToPoint, boolean snapToVertex, boolean snapToEdge)
layer
- - Reference to a feature or graphics layer that will be a target snapping layer.
The default option is to set all feature and graphics layers in the map to be target snapping layers.snapToPoint
- - Default is true. When true snapping to points will be enabled for layers with point geometry.snapToVertex
- - Default is true. When true snapping to vertices will be enabled for layers with polyline or polygon geometry.snapToEdge
- - Default is true. When true snapping to edges will be enabled for layers with polyline or polygon geometry.public final void setLayer(Layer layer)
layer
- - Reference to a feature or graphics layer that will be a target snapping layer.
The default option is to set all feature and graphics layers in the map to be target snapping layers.public final void setSnapToPoint(boolean snapToPoint)
snapToPoint
- - Default is true. When true snapping to points will be enabled for layers with point geometry.public final void setSnapToVertex(boolean snapToVertex)
snapToVertex
- - Default is true. When true snapping to points will be enabled for layers with point geometry.public final void setSnapToEdge(boolean snapToEdge)
snapToEdge
- - Default is true. When true snapping to points will be enabled for layers with point geometry.