dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
ZoomViewModel Class
Provides the logic for the Zoom component and Zoom widget.
ArcGIS Maps SDK for JavaScript
public class ZoomViewModel : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 ZoomViewModel
Constructors
ZoomViewModel() Constructor
Parameterless constructor for use as a Razor Component.
public ZoomViewModel();
ZoomViewModel(Nullable, Nullable) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public ZoomViewModel(System.Nullable<bool> canZoomIn=null, System.Nullable<bool> canZoomOut=null);
Parameters
canZoomIn
System.Nullable<System.Boolean>
Indicates if the view can zoom in.
ArcGIS Maps SDK for JavaScript
canZoomOut
System.Nullable<System.Boolean>
Indicates if the view can zoom out.
ArcGIS Maps SDK for JavaScript
Properties
ZoomViewModel.CanZoomIn Property
Indicates if the view can zoom in.
ArcGIS Maps SDK for JavaScript
public System.Nullable<bool> CanZoomIn { get; set; }
Property Value
System.Nullable<System.Boolean>
ZoomViewModel.CanZoomOut Property
Indicates if the view can zoom out.
ArcGIS Maps SDK for JavaScript
public System.Nullable<bool> CanZoomOut { get; set; }
Property Value
System.Nullable<System.Boolean>
ZoomViewModel.State Property
The current state of the widget.
default “disabled”
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.ZoomViewModelState> State { get; set; }
Property Value
System.Nullable<ZoomViewModelState>
Methods
ZoomViewModel.GetCanZoomIn() Method
Asynchronously retrieve the current value of the CanZoomIn property.
public System.Threading.Tasks.Task<System.Nullable<bool>> GetCanZoomIn();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
ZoomViewModel.GetCanZoomOut() Method
Asynchronously retrieve the current value of the CanZoomOut property.
public System.Threading.Tasks.Task<System.Nullable<bool>> GetCanZoomOut();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
ZoomViewModel.GetState() Method
Asynchronously retrieve the current value of the State property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.ZoomViewModelState>> GetState();
Returns
System.Threading.Tasks.Task<System.Nullable<ZoomViewModelState>>
ZoomViewModel.SetCanZoomIn(Nullable) Method
Asynchronously set the value of the CanZoomIn property after render.
public System.Threading.Tasks.Task SetCanZoomIn(System.Nullable<bool> value);
Parameters
value
System.Nullable<System.Boolean>
The value to set.
Returns
ZoomViewModel.SetCanZoomOut(Nullable) Method
Asynchronously set the value of the CanZoomOut property after render.
public System.Threading.Tasks.Task SetCanZoomOut(System.Nullable<bool> value);
Parameters
value
System.Nullable<System.Boolean>
The value to set.
Returns
ZoomViewModel.ZoomIn() Method
Zooms the view in by an LOD factor of 0.5.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task ZoomIn();
Returns
ZoomViewModel.ZoomOut() Method
Zooms the view out by an LOD factor of 2.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task ZoomOut();