GeoBlazor Pro


layout: pro title: SnappingOptions parent: Pro Classes grand_parent: GeoBlazor Pro —

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Components.Widgets

SnappingOptions Class

The SnappingOptions allows users to configure snapping for their editing or drawing experience in both the Sketch and Editor widgets.
Snapping options provide the ability to specify whether an application will utilize self snapping, feature snapping, or both. Both are described below.
It is also possible to toggle snapping by pressing and holding down the CTRL key. This toggles the snapping on/off.
ArcGIS Maps SDK for JavaScript

public class SnappingOptions : dymaptic.GeoBlazor.Core.Components.MapComponent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 SnappingOptions

Properties

SnappingOptions.Distance Property

Snapping distance for snapping in pixels.
Default Value:5

public System.Nullable<double> Distance { get; set; }

Property Value

System.Nullable<System.Double>

SnappingOptions.Enabled Property

Global configuration to turn snapping on or off. Note that snapping is turned off by default.
Default Value:false

public System.Nullable<bool> Enabled { get; set; }

Property Value

System.Nullable<System.Boolean>

SnappingOptions.FeatureEnabled Property

Global configuration option to turn feature snapping on or off.
Default Value:true

public System.Nullable<bool> FeatureEnabled { get; set; }

Property Value

System.Nullable<System.Boolean>

SnappingOptions.FeatureSources Property

List of sources for feature snapping. Please refer to FeatureSnappingLayerSource for additional information on what layer sources are supported.

public dymaptic.GeoBlazor.Pro.Components.Widgets.FeatureSnappingLayerSource[]? FeatureSources { get; set; }

Property Value

FeatureSnappingLayerSource[]

SnappingOptions.SelfEnabled Property

Global configuration option to turn self snapping (within one feature while either drawing or reshaping) on or off.
Default Value:true

public System.Nullable<bool> SelfEnabled { get; set; }

Property Value

System.Nullable<System.Boolean>