layout: default title: UniqueValueRenderer parent: Core Classes —
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 Maps SDK for JavaScript
public class UniqueValueRenderer : dymaptic.GeoBlazor.Core.Components.Renderers.Renderer,
dymaptic.GeoBlazor.Core.Components.Renderers.IImageryRenderer
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 LayerObject 🡒 Renderer 🡒 UniqueValueRenderer
Implements IImageryRenderer
Properties
UniqueValueRenderer.DefaultLabel Property
Label used in the Legend to describe features assigned the default symbol.
public string? DefaultLabel { get; set; }
Property Value
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.Renderers.DefaultSymbol? DefaultSymbol { get; set; }
Property Value
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
UniqueValueRenderer.ImageryRendererType Property
The type of renderer.
public string ImageryRendererType { get; }
Implements ImageryRendererType
Property Value
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
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.OnInitializedAsync 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
Exceptions
InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.
Remarks
This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method. If you see no other way to register a child component, please open an issue on GitHub.
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
Remarks
This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method.