RulesPreventSnapping

Rules specify that the asset type being edited should not snap to any features in the snap source. This value is returned from SnapSourceSettings.ruleBehavior when SnapRules.create determined that the given asset type should not be geometrically coincident with features in the applicable snap source. In this case, interactive snaps to features in the snap source are prevented because the utility network data model indicates this is not a logical connection and the features should not be geometrically coincident. For example an electric fuse device feature cannot be coincident with another electric fuse device, as two devices cannot be in the same physical location, and snapping is prevented in this case.

If providing the ability for a user to enable or disable snap sources in your app you may wish to exclude these snap sources from any list to simplify the user experience, because the sources cannot actually be snapped to regardless of the value of SnapSourceSettings.isEnabled.

These snap sources will always be based on data from the com.arcgismaps.utilitynetworks.UtilityNetwork used to create the SnapRules.

Since

200.7.0

See also