GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components
SketchViewModel Class
Provides the logic for the Sketch widget.
ArcGIS Maps SDK for JavaScript
public class SketchViewModel : dymaptic.GeoBlazor.Core.Components.MapComponent,
dymaptic.GeoBlazor.Core.Interfaces.IViewModel
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 SketchViewModel
Implements dymaptic.GeoBlazor.Core.Interfaces.IViewModel
Constructors
SketchViewModel() Constructor
Parameterless constructor for use as a Razor Component.
public SketchViewModel();
SketchViewModel(Symbol, Nullable, SketchViewModelDefaultCreateOptions, SketchViewModelDefaultUpdateOptions, SketchLabelOptions, GraphicsLayer, Symbol, Symbol, Symbol, SnappingOptions, SketchTooltipOptions, Nullable, SketchValueOptions) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public SketchViewModel(dymaptic.GeoBlazor.Core.Components.Symbols.Symbol? activeFillSymbol=null, System.Nullable<dymaptic.GeoBlazor.Pro.Enums.CreationMode> creationMode=null, dymaptic.GeoBlazor.Pro.Options.SketchViewModelDefaultCreateOptions? defaultCreateOptions=null, dymaptic.GeoBlazor.Pro.Options.SketchViewModelDefaultUpdateOptions? defaultUpdateOptions=null, dymaptic.GeoBlazor.Pro.Options.SketchLabelOptions? labelOptions=null, dymaptic.GeoBlazor.Core.Components.Layers.GraphicsLayer? layer=null, dymaptic.GeoBlazor.Core.Components.Symbols.Symbol? pointSymbol=null, dymaptic.GeoBlazor.Core.Components.Symbols.Symbol? polygonSymbol=null, dymaptic.GeoBlazor.Core.Components.Symbols.Symbol? polylineSymbol=null, dymaptic.GeoBlazor.Core.Components.SnappingOptions? snappingOptions=null, dymaptic.GeoBlazor.Pro.Options.SketchTooltipOptions? tooltipOptions=null, System.Nullable<bool> updateOnGraphicClick=null, dymaptic.GeoBlazor.Pro.Options.SketchValueOptions? valueOptions=null);
Parameters
activeFillSymbol
dymaptic.GeoBlazor.Core.Components.Symbols.Symbol
The SimpleFillSymbol displayed when actively creating a new polygon
graphic using the polygon
tool.
ArcGIS Maps SDK for JavaScript
creationMode
System.Nullable<CreationMode>
Defines the default behavior once the create operation is completed.
default “single”
ArcGIS Maps SDK for JavaScript
defaultCreateOptions
SketchViewModelDefaultCreateOptions
Default create options set for the SketchViewModel.
ArcGIS Maps SDK for JavaScript
defaultUpdateOptions
SketchViewModelDefaultUpdateOptions
Default update options set for the SketchViewModel.
ArcGIS Maps SDK for JavaScript
labelOptions
SketchLabelOptions
Options to configure the sketch labels shown next to each segment of the geometry being created or updated.
ArcGIS Maps SDK for JavaScript
layer
dymaptic.GeoBlazor.Core.Components.Layers.GraphicsLayer
The GraphicsLayer associated with the SketchViewModel.
ArcGIS Maps SDK for JavaScript
pointSymbol
dymaptic.GeoBlazor.Core.Components.Symbols.Symbol
A SimpleMarkerSymbol, PointSymbol3D, TextSymbol, CIMSymbol, or WebStyleSymbol used for representing the point geometry that is being drawn.
ArcGIS Maps SDK for JavaScript
polygonSymbol
dymaptic.GeoBlazor.Core.Components.Symbols.Symbol
A SimpleFillSymbol, PolygonSymbol3D, or CIMSymbol used for representing the polygon geometry that is being drawn.
ArcGIS Maps SDK for JavaScript
polylineSymbol
dymaptic.GeoBlazor.Core.Components.Symbols.Symbol
A SimpleLineSymbol, LineSymbol3D, or CIMSymbol used for representing the polyline geometry that is being drawn.
ArcGIS Maps SDK for JavaScript
snappingOptions
dymaptic.GeoBlazor.Core.Components.SnappingOptions
The SnappingOptions for sketching.
ArcGIS Maps SDK for JavaScript
tooltipOptions
SketchTooltipOptions
Options to configure the tooltip shown next to the cursor when creating or updating graphics.
ArcGIS Maps SDK for JavaScript
updateOnGraphicClick
System.Nullable<System.Boolean>
Indicates if a graphic can be selected to be updated.
ArcGIS Maps SDK for JavaScript
valueOptions
SketchValueOptions
Options to configure how values are displayed and input when creating or updating graphics.
ArcGIS Maps SDK for JavaScript
Properties
SketchViewModel.ActiveCreateToolDrawMode Property
When creating new graphics (for example after create() has been called),
this property reflects the drawing mode being used.
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.CreateOptionsMode> ActiveCreateToolDrawMode { get; set; }
Property Value
System.Nullable<dymaptic.GeoBlazor.Core.Enums.CreateOptionsMode>
SketchViewModel.ActiveFillSymbol Property
The SimpleFillSymbol displayed when actively creating a new polygon
graphic using the polygon
tool.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.Symbols.Symbol? ActiveFillSymbol { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Components.Symbols.Symbol
SketchViewModel.ActiveTool Property
When creating new graphics (for example after create() has been called),
this property reflects the create tool being used.
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.ActiveTool> ActiveTool { get; set; }
Property Value
System.Nullable<dymaptic.GeoBlazor.Core.Enums.ActiveTool>
SketchViewModel.ActiveTooltip Property
The tooltip currently being displayed for the activeTool.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Pro.Model.Tooltip? ActiveTooltip { get; set; }
Property Value
SketchViewModel.CreateGraphic Property
The graphic that is being created.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.Graphic? CreateGraphic { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Components.Graphic
SketchViewModel.CreationMode Property
Defines the default behavior once the create operation is completed.
default “single”
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Pro.Enums.CreationMode> CreationMode { get; set; }
Property Value
SketchViewModel.DefaultCreateOptions Property
Default create options set for the SketchViewModel.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Pro.Options.SketchViewModelDefaultCreateOptions? DefaultCreateOptions { get; set; }
Property Value
SketchViewModelDefaultCreateOptions
SketchViewModel.DefaultUpdateOptions Property
Default update options set for the SketchViewModel.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Pro.Options.SketchViewModelDefaultUpdateOptions? DefaultUpdateOptions { get; set; }
Property Value
SketchViewModelDefaultUpdateOptions
SketchViewModel.HasCreateListener Property
Used in JavaScript layer to determine if the event listener is registered.
public bool HasCreateListener { get; }
Property Value
SketchViewModel.HasDeleteListener Property
Used in JavaScript layer to determine if the event listener is registered.
public bool HasDeleteListener { get; }
Property Value
SketchViewModel.HasRedoListener Property
Used in JavaScript layer to determine if the event listener is registered.
public bool HasRedoListener { get; }
Property Value
SketchViewModel.HasUndoListener Property
Used in JavaScript layer to determine if the event listener is registered.
public bool HasUndoListener { get; }
Property Value
SketchViewModel.HasUpdateListener Property
Used in JavaScript layer to determine if the event listener is registered.
public bool HasUpdateListener { get; }
Property Value
SketchViewModel.LabelOptions Property
Options to configure the sketch labels shown next to each segment of the geometry being created or updated.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Pro.Options.SketchLabelOptions? LabelOptions { get; set; }
Property Value
SketchViewModel.OnCreate Property
Fires when a user starts sketching a graphic, is actively sketching a graphic and completes sketching a graphic.
public Microsoft.AspNetCore.Components.EventCallback<dymaptic.GeoBlazor.Pro.Events.SketchViewModelCreateEvent> OnCreate { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<SketchViewModelCreateEvent>
SketchViewModel.OnDelete Property
Fires when a user deletes selected graphics by clicking the
Delete feature
``` button on the Sketch widget
or when <a href="#delete">delete()</a> method is called.
```csharp
public Microsoft.AspNetCore.Components.EventCallback<dymaptic.GeoBlazor.Pro.Events.SketchViewModelDeleteEvent> OnDelete { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<SketchViewModelDeleteEvent>
SketchViewModel.OnRedo Property
Fires in response to redo action during creation of a new graphic or updating existing graphics.
The undo/redo stack is for an individual sketch operation, meaning you can redo/undo actions while creating or updating a graphic.
public Microsoft.AspNetCore.Components.EventCallback<dymaptic.GeoBlazor.Pro.Events.SketchViewModelRedoEvent> OnRedo { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<SketchViewModelRedoEvent>
SketchViewModel.OnUndo Property
Fires in response to undo action during creation of a new graphic or updating existing graphics.
The undo/redo stack is for an individual sketch operation, meaning you can redo/undo actions while creating or updating a graphic.
public Microsoft.AspNetCore.Components.EventCallback<dymaptic.GeoBlazor.Pro.Events.SketchViewModelUndoEvent> OnUndo { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<SketchViewModelUndoEvent>
SketchViewModel.OnUpdate Property
Fires when the user starts updating graphics, is actively updating graphics, and completes updating graphics.
public Microsoft.AspNetCore.Components.EventCallback<dymaptic.GeoBlazor.Pro.Events.SketchViewModelUpdateEvent> OnUpdate { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<SketchViewModelUpdateEvent>
SketchViewModel.PointSymbol Property
A SimpleMarkerSymbol, PointSymbol3D, TextSymbol, CIMSymbol, or WebStyleSymbol used for representing the point geometry that is being drawn.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.Symbols.Symbol? PointSymbol { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Components.Symbols.Symbol
SketchViewModel.PolygonSymbol Property
A SimpleFillSymbol, PolygonSymbol3D, or CIMSymbol used for representing the polygon geometry that is being drawn.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.Symbols.Symbol? PolygonSymbol { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Components.Symbols.Symbol
SketchViewModel.PolylineSymbol Property
A SimpleLineSymbol, LineSymbol3D, or CIMSymbol used for representing the polyline geometry that is being drawn.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.Symbols.Symbol? PolylineSymbol { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Components.Symbols.Symbol
SketchViewModel.SnappingOptions Property
The SnappingOptions for sketching.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.SnappingOptions? SnappingOptions { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Components.SnappingOptions
SketchViewModel.State Property
The sketch view model’s state.
default “disabled”
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Pro.Enums.SketchViewModelState> State { get; set; }
Property Value
System.Nullable<SketchViewModelState>
SketchViewModel.TooltipOptions Property
Options to configure the tooltip shown next to the cursor when creating or updating graphics.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Pro.Options.SketchTooltipOptions? TooltipOptions { get; set; }
Property Value
SketchViewModel.UpdateGraphics Property
An array of graphics that are being updated by the SketchViewModel.
ArcGIS Maps SDK for JavaScript
public System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Graphic>? UpdateGraphics { get; set; }
Property Value
System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Graphic>
SketchViewModel.UpdateOnGraphicClick Property
Indicates if a graphic can be selected to be updated.
ArcGIS Maps SDK for JavaScript
public System.Nullable<bool> UpdateOnGraphicClick { get; set; }
Property Value
System.Nullable<System.Boolean>
SketchViewModel.ValueOptions Property
Options to configure how values are displayed and input when creating or updating graphics.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Pro.Options.SketchValueOptions? ValueOptions { get; set; }
Property Value
Methods
SketchViewModel.Cancel() Method
Cancels the active operation and fires the create or update event
If called in the middle of a create operation, cancel()
discards the partially created graphic.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task Cancel();
Returns
SketchViewModel.CanRedo() Method
Indicates if it is possible to perform a redo() action in the current update session.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task<System.Nullable<bool>> CanRedo();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
SketchViewModel.CanUndo() Method
Indicates if it is possible to perform an undo() action in the current update session.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task<System.Nullable<bool>> CanUndo();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
SketchViewModel.Complete() Method
Completes the active operation and fires the create or update event
and changes the event’s state to complete
.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task Complete();
Returns
SketchViewModel.Delete() Method
Deletes the selected graphics used in the update workflow.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task Delete();
Returns
SketchViewModel.Duplicate() Method
Duplicates current graphics used in the update workflow and automatically adds them
to the associated layer.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task Duplicate();
Returns
SketchViewModel.GetActiveCreateToolDrawMode() Method
Asynchronously retrieve the current value of the ActiveCreateToolDrawMode property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.CreateOptionsMode>> GetActiveCreateToolDrawMode();
Returns
System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.CreateOptionsMode>>
SketchViewModel.GetActiveFillSymbol() Method
Asynchronously retrieve the current value of the ActiveFillSymbol property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Symbols.Symbol?> GetActiveFillSymbol();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Symbols.Symbol>
SketchViewModel.GetActiveTool() Method
Asynchronously retrieve the current value of the ActiveTool property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.ActiveTool>> GetActiveTool();
Returns
System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.ActiveTool>>
SketchViewModel.GetActiveTooltip() Method
Asynchronously retrieve the current value of the ActiveTooltip property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Model.Tooltip?> GetActiveTooltip();
Returns
System.Threading.Tasks.Task<Tooltip>
SketchViewModel.GetCreateGraphic() Method
Asynchronously retrieve the current value of the CreateGraphic property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Graphic?> GetCreateGraphic();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Graphic>
SketchViewModel.GetCreationMode() Method
Asynchronously retrieve the current value of the CreationMode property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Pro.Enums.CreationMode>> GetCreationMode();
Returns
System.Threading.Tasks.Task<System.Nullable<CreationMode>>
SketchViewModel.GetDefaultCreateOptions() Method
Asynchronously retrieve the current value of the DefaultCreateOptions property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Options.SketchViewModelDefaultCreateOptions?> GetDefaultCreateOptions();
Returns
System.Threading.Tasks.Task<SketchViewModelDefaultCreateOptions>
SketchViewModel.GetDefaultUpdateOptions() Method
Asynchronously retrieve the current value of the DefaultUpdateOptions property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Options.SketchViewModelDefaultUpdateOptions?> GetDefaultUpdateOptions();
Returns
System.Threading.Tasks.Task<SketchViewModelDefaultUpdateOptions>
SketchViewModel.GetLabelOptions() Method
Asynchronously retrieve the current value of the LabelOptions property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Options.SketchLabelOptions?> GetLabelOptions();
Returns
System.Threading.Tasks.Task<SketchLabelOptions>
SketchViewModel.GetLayer() Method
Asynchronously retrieve the current value of the Layer property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Layers.GraphicsLayer?> GetLayer();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Layers.GraphicsLayer>
SketchViewModel.GetPointSymbol() Method
Asynchronously retrieve the current value of the PointSymbol property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Symbols.Symbol?> GetPointSymbol();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Symbols.Symbol>
SketchViewModel.GetPolygonSymbol() Method
Asynchronously retrieve the current value of the PolygonSymbol property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Symbols.Symbol?> GetPolygonSymbol();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Symbols.Symbol>
SketchViewModel.GetPolylineSymbol() Method
Asynchronously retrieve the current value of the PolylineSymbol property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Symbols.Symbol?> GetPolylineSymbol();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Symbols.Symbol>
SketchViewModel.GetSnappingOptions() Method
Asynchronously retrieve the current value of the SnappingOptions property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.SnappingOptions?> GetSnappingOptions();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.SnappingOptions>
SketchViewModel.GetState() Method
Asynchronously retrieve the current value of the State property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Pro.Enums.SketchViewModelState>> GetState();
Returns
System.Threading.Tasks.Task<System.Nullable<SketchViewModelState>>
SketchViewModel.GetTooltipOptions() Method
Asynchronously retrieve the current value of the TooltipOptions property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Options.SketchTooltipOptions?> GetTooltipOptions();
Returns
System.Threading.Tasks.Task<SketchTooltipOptions>
SketchViewModel.GetUpdateGraphics() Method
Asynchronously retrieve the current value of the UpdateGraphics property.
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Graphic>?> GetUpdateGraphics();
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Graphic>>
SketchViewModel.GetUpdateOnGraphicClick() Method
Asynchronously retrieve the current value of the UpdateOnGraphicClick property.
public System.Threading.Tasks.Task<System.Nullable<bool>> GetUpdateOnGraphicClick();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
SketchViewModel.GetValueOptions() Method
Asynchronously retrieve the current value of the ValueOptions property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Options.SketchValueOptions?> GetValueOptions();
Returns
System.Threading.Tasks.Task<SketchValueOptions>
SketchViewModel.OnJsCreate(IJSStreamReference) Method
JavaScript-Invokable Method for internal use only.
public System.Threading.Tasks.Task OnJsCreate(Microsoft.JSInterop.IJSStreamReference jsStreamRef);
Parameters
jsStreamRef
Microsoft.JSInterop.IJSStreamReference
Returns
SketchViewModel.OnJsDelete(IJSStreamReference) Method
JavaScript-Invokable Method for internal use only.
public System.Threading.Tasks.Task OnJsDelete(Microsoft.JSInterop.IJSStreamReference jsStreamRef);
Parameters
jsStreamRef
Microsoft.JSInterop.IJSStreamReference
Returns
SketchViewModel.OnJsRedo(IJSStreamReference) Method
JavaScript-Invokable Method for internal use only.
public System.Threading.Tasks.Task OnJsRedo(Microsoft.JSInterop.IJSStreamReference jsStreamRef);
Parameters
jsStreamRef
Microsoft.JSInterop.IJSStreamReference
Returns
SketchViewModel.OnJsUndo(IJSStreamReference) Method
JavaScript-Invokable Method for internal use only.
public System.Threading.Tasks.Task OnJsUndo(Microsoft.JSInterop.IJSStreamReference jsStreamRef);
Parameters
jsStreamRef
Microsoft.JSInterop.IJSStreamReference
Returns
SketchViewModel.OnJsUpdate(IJSStreamReference) Method
JavaScript-Invokable Method for internal use only.
public System.Threading.Tasks.Task OnJsUpdate(Microsoft.JSInterop.IJSStreamReference jsStreamRef);
Parameters
jsStreamRef
Microsoft.JSInterop.IJSStreamReference
Returns
SketchViewModel.Place(Mesh) Method
Allows creation of a graphic similar to create with the
difference that the geometry can be provided directly for the graphic being created.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task Place(dymaptic.GeoBlazor.Pro.Components.Geometries.Mesh geometry);
Parameters
geometry
Mesh
Geometry to place when creating the graphic. Currently only mesh geometry is supported.
Returns
SketchViewModel.Redo() Method
Incrementally redo actions recorded in the stack.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task Redo();
Returns
SketchViewModel.SetActiveFillSymbol(Symbol) Method
Asynchronously set the value of the ActiveFillSymbol property after render.
public System.Threading.Tasks.Task SetActiveFillSymbol(dymaptic.GeoBlazor.Core.Components.Symbols.Symbol? value);
Parameters
value
dymaptic.GeoBlazor.Core.Components.Symbols.Symbol
The value to set.
Returns
SketchViewModel.SetCreationMode(Nullable) Method
Asynchronously set the value of the CreationMode property after render.
public System.Threading.Tasks.Task SetCreationMode(System.Nullable<dymaptic.GeoBlazor.Pro.Enums.CreationMode> value);
Parameters
value
System.Nullable<CreationMode>
The value to set.
Returns
SketchViewModel.SetDefaultCreateOptions(SketchViewModelDefaultCreateOptions) Method
Asynchronously set the value of the DefaultCreateOptions property after render.
public System.Threading.Tasks.Task SetDefaultCreateOptions(dymaptic.GeoBlazor.Pro.Options.SketchViewModelDefaultCreateOptions? value);
Parameters
value
SketchViewModelDefaultCreateOptions
The value to set.
Returns
SketchViewModel.SetDefaultUpdateOptions(SketchViewModelDefaultUpdateOptions) Method
Asynchronously set the value of the DefaultUpdateOptions property after render.
public System.Threading.Tasks.Task SetDefaultUpdateOptions(dymaptic.GeoBlazor.Pro.Options.SketchViewModelDefaultUpdateOptions? value);
Parameters
value
SketchViewModelDefaultUpdateOptions
The value to set.
Returns
SketchViewModel.SetLabelOptions(SketchLabelOptions) Method
Asynchronously set the value of the LabelOptions property after render.
public System.Threading.Tasks.Task SetLabelOptions(dymaptic.GeoBlazor.Pro.Options.SketchLabelOptions? value);
Parameters
value
SketchLabelOptions
The value to set.
Returns
SketchViewModel.SetLayer(GraphicsLayer) Method
Asynchronously set the value of the Layer property after render.
public System.Threading.Tasks.Task SetLayer(dymaptic.GeoBlazor.Core.Components.Layers.GraphicsLayer? value);
Parameters
value
dymaptic.GeoBlazor.Core.Components.Layers.GraphicsLayer
The value to set.
Returns
SketchViewModel.SetPointSymbol(Symbol) Method
Asynchronously set the value of the PointSymbol property after render.
public System.Threading.Tasks.Task SetPointSymbol(dymaptic.GeoBlazor.Core.Components.Symbols.Symbol? value);
Parameters
value
dymaptic.GeoBlazor.Core.Components.Symbols.Symbol
The value to set.
Returns
SketchViewModel.SetPolygonSymbol(Symbol) Method
Asynchronously set the value of the PolygonSymbol property after render.
public System.Threading.Tasks.Task SetPolygonSymbol(dymaptic.GeoBlazor.Core.Components.Symbols.Symbol? value);
Parameters
value
dymaptic.GeoBlazor.Core.Components.Symbols.Symbol
The value to set.
Returns
SketchViewModel.SetPolylineSymbol(Symbol) Method
Asynchronously set the value of the PolylineSymbol property after render.
public System.Threading.Tasks.Task SetPolylineSymbol(dymaptic.GeoBlazor.Core.Components.Symbols.Symbol? value);
Parameters
value
dymaptic.GeoBlazor.Core.Components.Symbols.Symbol
The value to set.
Returns
SketchViewModel.SetSnappingOptions(SnappingOptions) Method
Asynchronously set the value of the SnappingOptions property after render.
public System.Threading.Tasks.Task SetSnappingOptions(dymaptic.GeoBlazor.Core.Components.SnappingOptions? value);
Parameters
value
dymaptic.GeoBlazor.Core.Components.SnappingOptions
The value to set.
Returns
SketchViewModel.SetTooltipOptions(SketchTooltipOptions) Method
Asynchronously set the value of the TooltipOptions property after render.
public System.Threading.Tasks.Task SetTooltipOptions(dymaptic.GeoBlazor.Pro.Options.SketchTooltipOptions? value);
Parameters
value
SketchTooltipOptions
The value to set.
Returns
SketchViewModel.SetUpdateOnGraphicClick(Nullable) Method
Asynchronously set the value of the UpdateOnGraphicClick property after render.
public System.Threading.Tasks.Task SetUpdateOnGraphicClick(System.Nullable<bool> value);
Parameters
value
System.Nullable<System.Boolean>
The value to set.
Returns
SketchViewModel.SetValueOptions(SketchValueOptions) Method
Asynchronously set the value of the ValueOptions property after render.
public System.Threading.Tasks.Task SetValueOptions(dymaptic.GeoBlazor.Pro.Options.SketchValueOptions? value);
Parameters
value
SketchValueOptions
The value to set.
Returns
SketchViewModel.Undo() Method
Incrementally undo actions recorded in the stack.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task Undo();
Returns
SketchViewModel.Update(Graphic, SketchViewModelUpdateUpdateOptions) Method
Initializes an update operation for the specified graphic(s) and fires update event.
param updateOptions Update options for the graphics to be updated.
param updateOptions.enableRotation Indicates if the rotation
operation will be enabled when updating graphics. Only applies if tool
is transform
.
param updateOptions.enableZ Indicates if z-values can be modified when updating the graphic. When enabled, the height handle manipulator is displayed.
param updateOptions.preserveAspectRatio Indicates if the uniform scale operation will be enabled when updating graphics. enableScaling
must be set true
when setting this property to true
. Only applies if tool
is transform
and is always true
when transforming points that use a 3D object symbol layer.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task Update(dymaptic.GeoBlazor.Core.Components.Graphic graphics, dymaptic.GeoBlazor.Pro.Options.SketchViewModelUpdateUpdateOptions updateOptions);
Parameters
graphics
dymaptic.GeoBlazor.Core.Components.Graphic
A graphic or an array of graphics to be updated. Only graphics added to SketchViewModel’s layer property can be updated.
updateOptions
SketchViewModelUpdateUpdateOptions
- updateOptions.tool: Name of the update tool. Specifies the update operation for the selected graphics. The provided tool will become the activeTool. Possible Values
Value | Description |
—– | ———– |
transform | This is the *defaulttool for graphics with a polygon geometry, polyline geometry or graphics that use a 3D object symbol layer with a point geometry. It allows one or multiple graphics to be scaled, rotated and moved by default. Its default behavior can be changed by setting theenableRotation
,enableScaling
orpreserveAspectRatio
arguments when calling theupdate
method or setting them on the defaultUpdateOptions property when the Sketch widget initializes.
reshape | This tool allows the entire graphic or individual vertices of the graphic to be moved. Vertices can be added or removed. This tool can only be used with a single graphic that has a polygon or polyline geometry.
move | This is the *defaulttool for graphics with a point geometry that do not use a 3D object symbol layer. It should be used for specific cases where you just want to move selectedpolygon
andpolyline
graphics without additional options. Additionally, themove
tool does not support toggling to different modes, since themove
operation is built into both thetransform
andreshape
tools by default. - updateOptions.enableScaling: Indicates if the
scale
operation will be enabled when updating graphics. Only applies iftool
istransform
. - updateOptions.multipleSelectionEnabled: Indicates whether more than one selection can be made at once. This applies to the shift+click interaction with the
transform
tool. - updateOptions.toggleToolOnClick: Indicates if the graphic being updated can be toggled between
transform
andreshape
update options.
Returns
SketchViewModel.ValidateRequiredGeneratedChildren() Method
Validates source-generated child components.
public override void ValidateRequiredGeneratedChildren();
Implements ValidateRequiredGeneratedChildren()