java.lang.Object
com.esri.arcgisruntime.mapping.view.geometryeditor.SnapSourceSettings

public final class SnapSourceSettings extends Object
Configures a valid source of geometries that the GeometryEditor can snap interactive edits to.

Following a call to SnapSettings.syncSourceSettings(), the SnapSettings.getSourceSettings() collection is populated with SnapSourceSettings objects that are valid for snapping. Each represents a SnapSource that is in the currently connected map and provides full resolution geometries suitable for snapping.

Set enabledProperty() to true for each item that you want to allow your users to snap to. You may wish to delegate the choice of snapping sources to users by binding the collection of snapping sources to controls which allow them to change SnapSourceSettings.enabledProperty() for each snapping source individually.

Snapping works for visible objects within the SnapSource - for example if a layer is not visible due to the current scale range, definition expression, or other reason, it will not participate in snapping at that time. Visibility does not affect whether a SnapSourceSettings object is present in the SnapSettings.getSourceSettings() collection or not.

See SnapSource for more information about which data sources are valid for snapping.

Since:
200.4.0
See Also: