GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components
SwipeViewModel Class
Provides the logic for the Swipe widget.
ArcGIS Maps SDK for JavaScript
public class SwipeViewModel : dymaptic.GeoBlazor.Core.Components.MapComponent,
dymaptic.GeoBlazor.Core.Interfaces.IViewModel
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 SwipeViewModel
Implements dymaptic.GeoBlazor.Core.Interfaces.IViewModel
Constructors
SwipeViewModel() Constructor
Parameterless constructor for use as a Razor Component.
public SwipeViewModel();
SwipeViewModel(Nullable, IReadOnlyList, Nullable, IReadOnlyList) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public SwipeViewModel(System.Nullable<dymaptic.GeoBlazor.Pro.Enums.SwipeDirection> direction=null, System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer>? leadingLayers=null, System.Nullable<double> position=null, System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer>? trailingLayers=null);
Parameters
direction
System.Nullable<SwipeDirection>
The direction the Swipe widget moves across the view.
default “horizontal”
ArcGIS Maps SDK for JavaScript
leadingLayers
System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer>
A collection of Layers that will show on the left or top side of Swipe widget.
ArcGIS Maps SDK for JavaScript
position
System.Nullable<System.Double>
The position of the Swipe widget.
default 25
ArcGIS Maps SDK for JavaScript
trailingLayers
System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer>
A collection of Layers that will show on the right or bottom side of Swipe widget.
ArcGIS Maps SDK for JavaScript
Properties
SwipeViewModel.Direction Property
The direction the Swipe widget moves across the view.
default “horizontal”
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Pro.Enums.SwipeDirection> Direction { get; set; }
Property Value
System.Nullable<SwipeDirection>
SwipeViewModel.LeadingLayers Property
A collection of Layers that will show on the left or top side of Swipe widget.
ArcGIS Maps SDK for JavaScript
public System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer>? LeadingLayers { get; set; }
Property Value
System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer>
SwipeViewModel.Position Property
The position of the Swipe widget.
default 25
ArcGIS Maps SDK for JavaScript
public System.Nullable<double> Position { get; set; }
Property Value
System.Nullable<System.Double>
SwipeViewModel.State Property
The current state of the widget.
default disabled
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.ViewModelState> State { get; set; }
Property Value
System.Nullable<dymaptic.GeoBlazor.Core.Enums.ViewModelState>
SwipeViewModel.TrailingLayers Property
A collection of Layers that will show on the right or bottom side of Swipe widget.
ArcGIS Maps SDK for JavaScript
public System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer>? TrailingLayers { get; set; }
Property Value
System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer>
Methods
SwipeViewModel.AddToLeadingLayers(Layer[]) Method
Asynchronously adds elements to the LeadingLayers property.
public System.Threading.Tasks.Task AddToLeadingLayers(params dymaptic.GeoBlazor.Core.Components.Layers.Layer[] values);
Parameters
values
dymaptic.GeoBlazor.Core.Components.Layers.Layer[]
The elements to add.
Returns
SwipeViewModel.AddToTrailingLayers(Layer[]) Method
Asynchronously adds elements to the TrailingLayers property.
public System.Threading.Tasks.Task AddToTrailingLayers(params dymaptic.GeoBlazor.Core.Components.Layers.Layer[] values);
Parameters
values
dymaptic.GeoBlazor.Core.Components.Layers.Layer[]
The elements to add.
Returns
SwipeViewModel.GetDirection() Method
Asynchronously retrieve the current value of the Direction property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Pro.Enums.SwipeDirection>> GetDirection();
Returns
System.Threading.Tasks.Task<System.Nullable<SwipeDirection>>
SwipeViewModel.GetLeadingLayers() Method
Asynchronously retrieve the current value of the LeadingLayers property.
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer>?> GetLeadingLayers();
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer>>
SwipeViewModel.GetPosition() Method
Asynchronously retrieve the current value of the Position property.
public System.Threading.Tasks.Task<System.Nullable<double>> GetPosition();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Double>>
SwipeViewModel.GetState() Method
Asynchronously retrieve the current value of the State property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.ViewModelState>> GetState();
Returns
System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.ViewModelState>>
SwipeViewModel.GetTrailingLayers() Method
Asynchronously retrieve the current value of the TrailingLayers property.
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer>?> GetTrailingLayers();
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer>>
SwipeViewModel.GetView() Method
Asynchronously retrieve the current value of the View property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Views.MapView?> GetView();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Views.MapView>
SwipeViewModel.RemoveFromLeadingLayers(Layer[]) Method
Asynchronously remove an element from the LeadingLayers property.
public System.Threading.Tasks.Task RemoveFromLeadingLayers(params dymaptic.GeoBlazor.Core.Components.Layers.Layer[] values);
Parameters
values
dymaptic.GeoBlazor.Core.Components.Layers.Layer[]
The elements to remove.
Returns
SwipeViewModel.RemoveFromTrailingLayers(Layer[]) Method
Asynchronously remove an element from the TrailingLayers property.
public System.Threading.Tasks.Task RemoveFromTrailingLayers(params dymaptic.GeoBlazor.Core.Components.Layers.Layer[] values);
Parameters
values
dymaptic.GeoBlazor.Core.Components.Layers.Layer[]
The elements to remove.
Returns
SwipeViewModel.SetDirection(SwipeDirection) Method
Asynchronously set the value of the Direction property after render.
public System.Threading.Tasks.Task SetDirection(dymaptic.GeoBlazor.Pro.Enums.SwipeDirection value);
Parameters
value
SwipeDirection
The value to set.
Returns
SwipeViewModel.SetLeadingLayers(IReadOnlyList) Method
Asynchronously set the value of the LeadingLayers property after render.
public System.Threading.Tasks.Task SetLeadingLayers(System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer> value);
Parameters
value
System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer>
The value to set.
Returns
SwipeViewModel.SetPosition(double) Method
Asynchronously set the value of the Position property after render.
public System.Threading.Tasks.Task SetPosition(double value);
Parameters
value
System.Double
The value to set.
Returns
SwipeViewModel.SetTrailingLayers(IReadOnlyList) Method
Asynchronously set the value of the TrailingLayers property after render.
public System.Threading.Tasks.Task SetTrailingLayers(System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer> value);
Parameters
value
System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Layers.Layer>
The value to set.
Returns
SwipeViewModel.SetView(MapView) Method
Asynchronously set the value of the View property after render.
public System.Threading.Tasks.Task SetView(dymaptic.GeoBlazor.Core.Components.Views.MapView value);
Parameters
value
dymaptic.GeoBlazor.Core.Components.Views.MapView
The value to set.