dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Widgets
ZoomWidget Class
The Zoom widget allows users to zoom in/out within a view.
ArcGIS Maps SDK for JavaScript
public class ZoomWidget : dymaptic.GeoBlazor.Core.Components.Widgets.Widget
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Widget 🡒 ZoomWidget
Constructors
ZoomWidget() Constructor
Parameterless constructor for use as a Razor Component.
public ZoomWidget();
ZoomWidget(string, string, string, Nullable, MapView, Nullable, ZoomViewModel, Nullable, string) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public ZoomWidget(string? containerId=null, string? icon=null, string? label=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.WidgetLayout> layout=null, dymaptic.GeoBlazor.Core.Components.Views.MapView? mapView=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.OverlayPosition> position=null, dymaptic.GeoBlazor.Core.Components.ZoomViewModel? viewModel=null, System.Nullable<bool> visible=null, string? widgetId=null);
Parameters
containerId
System.String
The id of an external HTML Element (div). If provided, the widget will be placed inside that element, instead of on the map.
icon
System.String
Icon which represents the widget.
default “magnifying-glass-plus”
ArcGIS Maps SDK for JavaScript
label
System.String
The widget’s default label.
ArcGIS Maps SDK for JavaScript
layout
System.Nullable<WidgetLayout>
Determines the layout/orientation of the Zoom widget.
default “vertical”
ArcGIS Maps SDK for JavaScript
mapView
MapView
If the Widget is defined outside of the MapView, this link is required to connect them together.
position
System.Nullable<OverlayPosition>
The position of the widget in relation to the map view.
viewModel
ZoomViewModel
The view model for this widget.
ArcGIS Maps SDK for JavaScript
visible
System.Nullable<System.Boolean>
Indicates whether the widget is visible.
default true
ArcGIS Maps SDK for JavaScript
widgetId
System.String
The unique ID assigned to the widget when the widget is created.
ArcGIS Maps SDK for JavaScript
Properties
ZoomWidget.Layout Property
Determines the layout/orientation of the Zoom widget.
default “vertical”
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.WidgetLayout> Layout { get; set; }
Property Value
ZoomWidget.Type Property
The type of widget
public override dymaptic.GeoBlazor.Core.Enums.WidgetType Type { get; }
Property Value
ZoomWidget.ViewModel Property
The view model for this widget.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.ZoomViewModel? ViewModel { get; set; }
Property Value
Methods
ZoomWidget.GetLayout() Method
Asynchronously retrieve the current value of the Layout property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.WidgetLayout>> GetLayout();
Returns
System.Threading.Tasks.Task<System.Nullable<WidgetLayout>>
ZoomWidget.GetViewModel() Method
Asynchronously retrieve the current value of the ViewModel property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.ZoomViewModel?> GetViewModel();
Returns
System.Threading.Tasks.Task<ZoomViewModel>
ZoomWidget.SetLayout(Nullable) Method
Asynchronously set the value of the Layout property after render.
public System.Threading.Tasks.Task SetLayout(System.Nullable<dymaptic.GeoBlazor.Core.Enums.WidgetLayout> value);
Parameters
value
System.Nullable<WidgetLayout>
The value to set.
Returns
ZoomWidget.SetViewModel(ZoomViewModel) Method
Asynchronously set the value of the ViewModel property after render.
public System.Threading.Tasks.Task SetViewModel(dymaptic.GeoBlazor.Core.Components.ZoomViewModel? value);
Parameters
value
ZoomViewModel
The value to set.
Returns
ZoomWidget.ValidateRequiredGeneratedChildren() Method
Validates source-generated child components.
public override void ValidateRequiredGeneratedChildren();
Implements ValidateRequiredGeneratedChildren()
ZoomWidget.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
ZoomWidget.ZoomOut() Method
Zooms the view out by an LOD factor of 2.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task ZoomOut();