dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components

LegendViewModelLayerInfos Class

Specifies a subset of the layers in the map to display in the legend.
ArcGIS Maps SDK for JavaScript

public class LegendViewModelLayerInfos : dymaptic.GeoBlazor.Core.Components.MapComponent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 LegendViewModelLayerInfos

Constructors

LegendViewModelLayerInfos() Constructor

Parameterless constructor for use as a Razor Component.

public LegendViewModelLayerInfos();

LegendViewModelLayerInfos(Layer, string) Constructor

Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.

public LegendViewModelLayerInfos(dymaptic.GeoBlazor.Core.Components.Layers.Layer? layer=null, string? title=null);

Parameters

layer Layer

A layer to add to the legend.
ArcGIS Maps SDK for JavaScript

title System.String

Specify a title for the layer.
ArcGIS Maps SDK for JavaScript

Properties

LegendViewModelLayerInfos.Title Property

Specify a title for the layer.
ArcGIS Maps SDK for JavaScript

public string? Title { get; set; }

Property Value

System.String

Methods

LegendViewModelLayerInfos.GetLayer() Method

Asynchronously retrieve the current value of the Layer property.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Layers.Layer?> GetLayer();

Returns

System.Threading.Tasks.Task<Layer>

LegendViewModelLayerInfos.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>

LegendViewModelLayerInfos.SetLayer(Layer) Method

Asynchronously set the value of the Layer property after render.

public System.Threading.Tasks.Task SetLayer(dymaptic.GeoBlazor.Core.Components.Layers.Layer? value);

Parameters

value Layer

The value to set.

Returns

System.Threading.Tasks.Task

LegendViewModelLayerInfos.SetTitle(string) Method

Asynchronously set the value of the Title property after render.

public System.Threading.Tasks.Task SetTitle(string? value);

Parameters

value System.String

The value to set.

Returns

System.Threading.Tasks.Task