Skip to main content Link Menu Expand (external link) Document Search Copy Copied

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Renderers

UniqueValueRenderer Class

UniqueValueRenderer allows you to symbolize features in a Layer based on one or more matching string attributes.
This is typically done by using unique colors, fill styles, or images to represent features with equal values in a
string field.

ArcGIS
  
JS API

</a>

public class UniqueValueRenderer : dymaptic.GeoBlazor.Core.Components.Renderers.Renderer

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 LayerObject 🡒 Renderer 🡒 UniqueValueRenderer

Properties

UniqueValueRenderer.DefaultLabel Property

Label used in the Legend to describe features assigned the default symbol.

public string? DefaultLabel { get; set; }

Property Value

System.String

UniqueValueRenderer.DefaultSymbol Property

The default symbol used to draw a feature whose value is not matched or specified by the renderer.

public dymaptic.GeoBlazor.Core.Components.Symbols.Symbol? DefaultSymbol { get; }

Property Value

Symbol

UniqueValueRenderer.Field Property

The name of the attribute field the renderer uses to match unique values or types.

public string? Field { get; set; }

Property Value

System.String

UniqueValueRenderer.LegendOptions Property

An object providing options for displaying the renderer in the Legend.

public dymaptic.GeoBlazor.Core.Components.Renderers.UniqueValueRendererLegendOptions? LegendOptions { get; set; }

Property Value

UniqueValueRendererLegendOptions

UniqueValueRenderer.RendererType Property

The subclass Renderer type

public override dymaptic.GeoBlazor.Core.Components.Renderers.RendererType RendererType { get; }

Property Value

RendererType

UniqueValueRenderer.UniqueValueInfos Property

Each element in the array is an object that provides information about a unique value associated with the renderer.

public System.Collections.Generic.HashSet<dymaptic.GeoBlazor.Core.Components.Renderers.UniqueValueInfo> UniqueValueInfos { get; set; }

Property Value

System.Collections.Generic.HashSet<UniqueValueInfo>

Methods

UniqueValueRenderer.RegisterChildComponent(MapComponent) Method

Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnAfterRenderAsync(System.Boolean) to “Register” the current component with it’s parent.

public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);

Parameters

child MapComponent

The calling, child component to register

Returns

System.Threading.Tasks.Task

Exceptions

InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.

UniqueValueRenderer.UnregisterChildComponent(MapComponent) Method

Undoes the “Registration” of a child with its parent.

public override System.Threading.Tasks.Task UnregisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);

Parameters

child MapComponent

The child to unregister

Returns

System.Threading.Tasks.Task