GeoBlazor Pro


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

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Components.Widgets

EditorViewModel Class

Provides the logic for the EditorWidget.
ArcGIS Maps SDK for JavaScript

public class EditorViewModel

Inheritance System.Object 🡒 EditorViewModel

Properties

EditorViewModel.ActiveWorkflow Property

A property indicating the current active workflow. This is either CreateFeaturesWorkflow or UpdateWorkflow.

public dymaptic.GeoBlazor.Pro.Objects.Workflow? ActiveWorkflow { get; set; }

Property Value

Workflow

EditorViewModel.AllowedWorkflows Property

An array of string values which specifies what end users are allowed to edit. For example, a feature layer with full editing privileges may be available. But you may only want the end user to have the ability to update existing features. Set the allowedWorkflows to only update.

public string? AllowedWorkflows { get; set; }

Property Value

System.String

EditorViewModel.AttachmentsViewModel Property

The AttachmentsViewModel for supporting the editor widget. Attachment editing is enabled by default if the layer has support for it.

public dymaptic.GeoBlazor.Pro.Components.Widgets.AttachmentsViewModel? AttachmentsViewModel { get; set; }

Property Value

AttachmentsViewModel

EditorViewModel.CanCreate Property

Convenience property that reads whether there are any editable layers that support the create-features workflow.

public bool CanCreate { get; set; }

Property Value

System.Boolean

EditorViewModel.CanUpdate Property

Convenience property that reads whether there are any editable layers that support the update workflow.

public bool CanUpdate { get; set; }

Property Value

System.Boolean

EditorViewModel.EditableItems Property

A read-only collection of editable item objects that match the feature being updated.

public dymaptic.GeoBlazor.Pro.Objects.EditableItem[]? EditableItems { get; set; }

Property Value

EditableItem[]

EditorViewModel.Failures Property

An array of objects containing information specific to any failed editing operations. In addition to the error(s), options to retry() or cancel() are provided.

public dymaptic.GeoBlazor.Pro.Components.Widgets.EditFailure[]? Failures { get; set; }

Property Value

EditFailure[]

EditorViewModel.FeatureFormViewModel Property

The FeatureFormViewModel for supporting the editor widget.

public dymaptic.GeoBlazor.Pro.Components.Widgets.FeatureFormViewModel? FeatureFormViewModel { get; set; }

Property Value

FeatureFormViewModel

EditorViewModel.FeatureTemplatesViewModel Property

The FeatureTemplatesViewModel for supporting the editor widget.

public dymaptic.GeoBlazor.Pro.Components.Widgets.FeatureTemplatesViewModel? FeatureTemplatesViewModel { get; set; }

Property Value

FeatureTemplatesViewModel

EditorViewModel.LabelOptions Property

Options to configure the labels shown next to each segment of the geometry being created or updated.

public dymaptic.GeoBlazor.Pro.Components.Widgets.SketchLabelOptions? LabelOptions { get; set; }

Property Value

SketchLabelOptions

Remarks

Sketch labels are currently only supported when working with a SceneView.

EditorViewModel.LayerInfos Property

An array of editing configurations for individual layers.
For example, if you have an editable feature layer but do not want the end user to do any type of editing, you can limit this by setting the enabled property to false.

public dymaptic.GeoBlazor.Pro.Components.Widgets.EditorLayerInfo[]? LayerInfos { get; set; }

Property Value

EditorLayerInfo[]

EditorViewModel.SketchViewModel Property

The SketchViewModel for supporting the editor widget.

public dymaptic.GeoBlazor.Pro.Components.Widgets.SketchViewModel? SketchViewModel { get; set; }

Property Value

SketchViewModel

EditorViewModel.SnappingOptions Property

The SnappingOptions for sketching. It supports self and feature snapping.

public dymaptic.GeoBlazor.Pro.Components.Widgets.SnappingOptions? SnappingOptions { get; set; }

Property Value

SnappingOptions

EditorViewModel.State Property

The widget’s state.

public string? State { get; set; }

Property Value

System.String

EditorViewModel.Syncing Property

Indicates if there is at least one edit request being processed.

public bool Syncing { get; set; }

Property Value

System.Boolean

EditorViewModel.TooltipOptions Property

Options to configure the tooltip shown next to the cursor when creating or updating graphics.

public dymaptic.GeoBlazor.Pro.Components.Widgets.SketchTooltipOptions? TooltipOptions { get; set; }

Property Value

SketchTooltipOptions