GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components
FeatureViewModel Class
Provides the logic for the Feature widget.
ArcGIS Maps SDK for JavaScript
public class FeatureViewModel : dymaptic.GeoBlazor.Core.Components.MapComponent,
dymaptic.GeoBlazor.Core.Interfaces.IFeatureViewModel,
dymaptic.GeoBlazor.Core.Interfaces.IMapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 FeatureViewModel
Implements dymaptic.GeoBlazor.Core.Interfaces.IFeatureViewModel, dymaptic.GeoBlazor.Core.Interfaces.IMapComponent
Constructors
FeatureViewModel() Constructor
Parameterless constructor for use as a Razor Component.
public FeatureViewModel();
FeatureViewModel(Abilities, Nullable, Graphic, Point, SpatialReference, string) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public FeatureViewModel(dymaptic.GeoBlazor.Core.Components.Abilities? abilities=null, System.Nullable<bool> defaultPopupTemplateEnabled=null, dymaptic.GeoBlazor.Core.Components.Graphic? graphic=null, dymaptic.GeoBlazor.Core.Components.Geometries.Point? location=null, dymaptic.GeoBlazor.Core.Components.SpatialReference? spatialReference=null, string? timeZone=null);
Parameters
abilities
dymaptic.GeoBlazor.Core.Components.Abilities
Defines the specific abilities that the Feature and Popup widgets should use when querying and displaying its content.
ArcGIS Maps SDK for JavaScript
defaultPopupTemplateEnabled
System.Nullable<System.Boolean>
Enables automatic creation of a popup template for layers that have popups enabled but no
popupTemplate defined.
default false
ArcGIS Maps SDK for JavaScript
graphic
dymaptic.GeoBlazor.Core.Components.Graphic
The Graphic used to represent the feature.
default null
ArcGIS Maps SDK for JavaScript
location
dymaptic.GeoBlazor.Core.Components.Geometries.Point
The Point representing the location of the
MapView interaction used to trigger the opening of the widget.
default null
ArcGIS Maps SDK for JavaScript
spatialReference
dymaptic.GeoBlazor.Core.Components.SpatialReference
The spatial reference used for Arcade operations.
default null
ArcGIS Maps SDK for JavaScript
timeZone
System.String
Dates and times displayed in the widget will be displayed in this time zone.
ArcGIS Maps SDK for JavaScript
Properties
FeatureViewModel.Abilities Property
Defines the specific abilities that the Feature and Popup widgets should use when querying and displaying its content.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.Abilities? Abilities { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Components.Abilities
FeatureViewModel.DefaultPopupTemplateEnabled Property
Enables automatic creation of a popup template for layers that have popups enabled but no
popupTemplate defined.
default false
ArcGIS Maps SDK for JavaScript
public System.Nullable<bool> DefaultPopupTemplateEnabled { get; set; }
Property Value
System.Nullable<System.Boolean>
FeatureViewModel.ElementReferenceContent Property
The content of the feature.
default null
ArcGIS Maps SDK for JavaScript
public System.Nullable<Microsoft.AspNetCore.Components.ElementReference> ElementReferenceContent { get; set; }
Property Value
System.Nullable<Microsoft.AspNetCore.Components.ElementReference>
FeatureViewModel.FormattedAttributes Property
The formatted attributes calculated from fieldInfo
PopupTemplate
content.
default null
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Pro.Components.FeatureViewModelFormattedAttributes? FormattedAttributes { get; set; }
Property Value
FeatureViewModelFormattedAttributes
FeatureViewModel.Graphic Property
The Graphic used to represent the feature.
default null
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.Graphic? Graphic { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Components.Graphic
FeatureViewModel.LastEditInfo Property
A read-only property containing metadata regarding the last edit performed on a feature.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Model.FeatureViewModelLastEditInfo? LastEditInfo { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Model.FeatureViewModelLastEditInfo
FeatureViewModel.Location Property
The Point representing the location of the
MapView interaction used to trigger the opening of the widget.
default null
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.Geometries.Point? Location { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Components.Geometries.Point
FeatureViewModel.PopupContentCollectionContent Property
The content of the feature.
default null
ArcGIS Maps SDK for JavaScript
public System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Popups.PopupContent>? PopupContentCollectionContent { get; set; }
Property Value
System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Popups.PopupContent>
FeatureViewModel.SpatialReference Property
The spatial reference used for Arcade operations.
default null
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.SpatialReference? SpatialReference { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Components.SpatialReference
FeatureViewModel.State Property
The view model’s state.
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>
FeatureViewModel.StringContent Property
The content of the feature.
default null
ArcGIS Maps SDK for JavaScript
public string? StringContent { get; set; }
Property Value
FeatureViewModel.TimeZone Property
Dates and times displayed in the widget will be displayed in this time zone.
ArcGIS Maps SDK for JavaScript
public string? TimeZone { get; set; }
Property Value
FeatureViewModel.Title Property
The title for the feature.
ArcGIS Maps SDK for JavaScript
public string? Title { get; set; }
Property Value
FeatureViewModel.WaitingForContent Property
Indicates whether the feature is currently waiting for all of its content to finish loading.
ArcGIS Maps SDK for JavaScript
public System.Nullable<bool> WaitingForContent { get; set; }
Property Value
System.Nullable<System.Boolean>
FeatureViewModel.WidgetContent Property
The content of the feature.
default null
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.Widgets.Widget? WidgetContent { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Components.Widgets.Widget
Methods
FeatureViewModel.GetAbilities() Method
Asynchronously retrieve the current value of the Abilities property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Abilities?> GetAbilities();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Abilities>
FeatureViewModel.GetDefaultPopupTemplateEnabled() Method
Asynchronously retrieve the current value of the DefaultPopupTemplateEnabled property.
public System.Threading.Tasks.Task<System.Nullable<bool>> GetDefaultPopupTemplateEnabled();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
FeatureViewModel.GetElementReferenceContent() Method
Asynchronously retrieve the current value of the ElementReferenceContent property.
public System.Threading.Tasks.Task<System.Nullable<Microsoft.AspNetCore.Components.ElementReference>> GetElementReferenceContent();
Returns
System.Threading.Tasks.Task<System.Nullable<Microsoft.AspNetCore.Components.ElementReference>>
FeatureViewModel.GetFormattedAttributes() Method
Asynchronously retrieve the current value of the FormattedAttributes property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Components.FeatureViewModelFormattedAttributes?> GetFormattedAttributes();
Returns
System.Threading.Tasks.Task<FeatureViewModelFormattedAttributes>
FeatureViewModel.GetGraphic() Method
Asynchronously retrieve the current value of the Graphic property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Graphic?> GetGraphic();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Graphic>
FeatureViewModel.GetLastEditInfo() Method
Asynchronously retrieve the current value of the LastEditInfo property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.FeatureViewModelLastEditInfo?> GetLastEditInfo();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.FeatureViewModelLastEditInfo>
FeatureViewModel.GetLocation() Method
Asynchronously retrieve the current value of the Location property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Geometries.Point?> GetLocation();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Geometries.Point>
FeatureViewModel.GetPopupContentCollectionContent() Method
Asynchronously retrieve the current value of the PopupContentCollectionContent property.
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Popups.PopupContent>?> GetPopupContentCollectionContent();
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Popups.PopupContent>>
FeatureViewModel.GetSpatialReference() Method
Asynchronously retrieve the current value of the SpatialReference property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.SpatialReference?> GetSpatialReference();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.SpatialReference>
FeatureViewModel.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>>
FeatureViewModel.GetStringContent() Method
Asynchronously retrieve the current value of the StringContent property.
public System.Threading.Tasks.Task<string?> GetStringContent();
Returns
System.Threading.Tasks.Task<System.String>
FeatureViewModel.GetTimeZone() Method
Asynchronously retrieve the current value of the TimeZone property.
public System.Threading.Tasks.Task<string?> GetTimeZone();
Returns
System.Threading.Tasks.Task<System.String>
FeatureViewModel.GetTitle() Method
Asynchronously retrieve the current value of the Title property.
public System.Threading.Tasks.Task<string?> GetTitle();
Returns
System.Threading.Tasks.Task<System.String>
FeatureViewModel.GetWaitingForContent() Method
Asynchronously retrieve the current value of the WaitingForContent property.
public System.Threading.Tasks.Task<System.Nullable<bool>> GetWaitingForContent();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
FeatureViewModel.GetWidgetContent() Method
Asynchronously retrieve the current value of the WidgetContent property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Widgets.Widget?> GetWidgetContent();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Widgets.Widget>
FeatureViewModel.NextMedia(int) Method
Paginates to the next media info.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task NextMedia(int contentElementIndex);
Parameters
contentElementIndex
System.Int32
The index position of the media content element.
Returns
FeatureViewModel.PreviousMedia(int) Method
Paginates to the previous media info in the specified
media content element.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task PreviousMedia(int contentElementIndex);
Parameters
contentElementIndex
System.Int32
The index position of the media content element.
Returns
FeatureViewModel.SetAbilities(Abilities) Method
Asynchronously set the value of the Abilities property after render.
public System.Threading.Tasks.Task SetAbilities(dymaptic.GeoBlazor.Core.Components.Abilities? value);
Parameters
value
dymaptic.GeoBlazor.Core.Components.Abilities
The value to set.
Returns
FeatureViewModel.SetActiveMedia(int, int) Method
Paginates to a specified media info object.
param mediaInfoIndex The index position of the media info object you wish to display.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task SetActiveMedia(int contentElementIndex, int mediaInfoIndex);
Parameters
contentElementIndex
System.Int32
The index position of the media content element to be updated.
mediaInfoIndex
System.Int32
The index position of the media info object you wish to display.
Returns
FeatureViewModel.SetDefaultPopupTemplateEnabled(Nullable) Method
Asynchronously set the value of the DefaultPopupTemplateEnabled property after render.
public System.Threading.Tasks.Task SetDefaultPopupTemplateEnabled(System.Nullable<bool> value);
Parameters
value
System.Nullable<System.Boolean>
The value to set.
Returns
FeatureViewModel.SetGraphic(Graphic) Method
Asynchronously set the value of the Graphic property after render.
public System.Threading.Tasks.Task SetGraphic(dymaptic.GeoBlazor.Core.Components.Graphic? value);
Parameters
value
dymaptic.GeoBlazor.Core.Components.Graphic
The value to set.
Returns
FeatureViewModel.SetLocation(Point) Method
Asynchronously set the value of the Location property after render.
public System.Threading.Tasks.Task SetLocation(dymaptic.GeoBlazor.Core.Components.Geometries.Point? value);
Parameters
value
dymaptic.GeoBlazor.Core.Components.Geometries.Point
The value to set.
Returns
FeatureViewModel.SetSpatialReference(SpatialReference) Method
Asynchronously set the value of the SpatialReference property after render.
public System.Threading.Tasks.Task SetSpatialReference(dymaptic.GeoBlazor.Core.Components.SpatialReference? value);
Parameters
value
dymaptic.GeoBlazor.Core.Components.SpatialReference
The value to set.
Returns
FeatureViewModel.SetTimeZone(string) Method
Asynchronously set the value of the TimeZone property after render.
public System.Threading.Tasks.Task SetTimeZone(string? value);
Parameters
value
System.String
The value to set.
Returns
FeatureViewModel.ValidateRequiredGeneratedChildren() Method
Validates source-generated child components.
public override void ValidateRequiredGeneratedChildren();
Implements ValidateRequiredGeneratedChildren()