dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
GraphicsLayerView Class
Represents the LayerView of a GraphicsLayer
after it has been added to a Map in either a MapView or
SceneView.
ArcGIS Maps SDK for JavaScript
public class GraphicsLayerView : dymaptic.GeoBlazor.Core.Components.LayerView,
dymaptic.GeoBlazor.Core.Interfaces.IHighlightLayerViewMixin,
dymaptic.GeoBlazor.Core.Interfaces.IMapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 LayerView 🡒 GraphicsLayerView
Implements IHighlightLayerViewMixin, IMapComponent
Constructors
GraphicsLayerView() Constructor
Parameterless constructor for use as a Razor Component.
public GraphicsLayerView();
GraphicsLayerView(HighlightOptions, Nullable) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public GraphicsLayerView(dymaptic.GeoBlazor.Core.Components.HighlightOptions? highlightOptions=null, System.Nullable<bool> visible=null);
Parameters
highlightOptions
HighlightOptions
Options for configuring the highlight.
ArcGIS Maps SDK for JavaScript
visible
System.Nullable<System.Boolean>
When true
, the layer is visible in the view.
default true
ArcGIS Maps SDK for JavaScript
Properties
GraphicsLayerView.HighlightOptions Property
Options for configuring the highlight.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.HighlightOptions? HighlightOptions { get; set; }
Implements HighlightOptions
Property Value
GraphicsLayerView.Type Property
Identifies the layer view type.
public override System.Nullable<dymaptic.GeoBlazor.Core.Enums.LayerType> Type { get; }
Property Value
Methods
GraphicsLayerView.GetHighlightOptions() Method
Asynchronously retrieve the current value of the HighlightOptions property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.HighlightOptions?> GetHighlightOptions();
Implements GetHighlightOptions()
Returns
System.Threading.Tasks.Task<HighlightOptions>
GraphicsLayerView.Highlight(Graphic) Method
Highlights the given feature(s).
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.Handle> Highlight(dymaptic.GeoBlazor.Core.Components.Graphic graphic);
Parameters
graphic
Graphic
The Graphic to highlight.
Implements Highlight(Graphic)
Returns
System.Threading.Tasks.Task<Handle>
A handle that allows the highlight to be removed later.
Exceptions
System.InvalidOperationException
Throws if the graphic has no OBJECTID attribute and was not queried via GeoBlazor.
GraphicsLayerView.Highlight(ObjectId) Method
Highlights the given feature(s).
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.Handle> Highlight(dymaptic.GeoBlazor.Core.Model.ObjectId objectId);
Parameters
objectId
ObjectId
The ObjectID of the graphic to highlight.
Implements Highlight(ObjectId)
Returns
System.Threading.Tasks.Task<Handle>
A handle that allows the highlight to be removed later.
GraphicsLayerView.Highlight(IReadOnlyCollection) Method
Highlights the given feature(s).
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.Handle> Highlight(System.Collections.Generic.IReadOnlyCollection<dymaptic.GeoBlazor.Core.Components.Graphic> graphics);
Parameters
graphics
System.Collections.Generic.IReadOnlyCollection<Graphic>
The graphics to highlight.
Implements Highlight(IReadOnlyCollection<Graphic>)
Returns
System.Threading.Tasks.Task<Handle>
A handle that allows the highlight to be removed later.
Exceptions
System.InvalidOperationException
Throws if the graphics have no OBJECTID attribute and were not queried via GeoBlazor.
GraphicsLayerView.Highlight(IReadOnlyCollection) Method
Highlights the given feature(s).
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.Handle> Highlight(System.Collections.Generic.IReadOnlyCollection<dymaptic.GeoBlazor.Core.Model.ObjectId> objectIds);
Parameters
objectIds
System.Collections.Generic.IReadOnlyCollection<ObjectId>
The ObjectIDs of the graphics to highlight.
Implements Highlight(IReadOnlyCollection<ObjectId>)
Returns
System.Threading.Tasks.Task<Handle>
A handle that allows the highlight to be removed later.
Exceptions
System.ArgumentException
Throws if no ObjectIDs are provided.
GraphicsLayerView.SetHighlightOptions(HighlightOptions) Method
Asynchronously set the value of the HighlightOptions property after render.
public System.Threading.Tasks.Task SetHighlightOptions(dymaptic.GeoBlazor.Core.Components.HighlightOptions? value);
Parameters
value
HighlightOptions
The value to set.
Implements SetHighlightOptions(HighlightOptions)
Returns
GraphicsLayerView.ValidateRequiredGeneratedChildren() Method
Validates source-generated child components.
public override void ValidateRequiredGeneratedChildren();
Implements ValidateRequiredGeneratedChildren()