layout: default title: SimpleRenderer parent: Core Classes —
dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Renderers
SimpleRenderer Class
SimpleRenderer renders all features in a Layer with one Symbol. This renderer may be used to simply visualize the
location of geographic features.
ArcGIS Maps SDK for JavaScript
public class SimpleRenderer : dymaptic.GeoBlazor.Core.Components.Renderers.Renderer
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 LayerObject 🡒 Renderer 🡒 SimpleRenderer
Constructors
SimpleRenderer() Constructor
Parameterless constructor for use as a Razor component.
public SimpleRenderer();
SimpleRenderer(Symbol, string, VisualVariable[]) Constructor
Constructor for a SimpleRenderer for use in code.
public SimpleRenderer(dymaptic.GeoBlazor.Core.Components.Symbols.Symbol symbol, string? label=null, dymaptic.GeoBlazor.Core.Components.Layers.VisualVariable[]? visualVariables=null);
Parameters
symbol
Symbol
The symbol for the renderer.
label
System.String
The label for the renderer.
visualVariables
VisualVariable[]
An array of VisualVariable objects.
Properties
SimpleRenderer.Label Property
The label for the renderer. This describes what features with the given symbol represent in the real world. This will display next to the layer’s symbol inside the Legend widget.
This text is not displayed in the Legend when visualVariables are used. When the renderer contains visualVariables, you should set the title property in legendOptions on each visual variable to describe the visualization.
public string? Label { get; set; }
Property Value
SimpleRenderer.RendererType Property
The subclass Renderer type
public override dymaptic.GeoBlazor.Core.Components.Renderers.RendererType RendererType { get; }
Property Value
SimpleRenderer.VisualVariables Property
A collection of VisualVariable objects.
public System.Collections.Generic.HashSet<dymaptic.GeoBlazor.Core.Components.Layers.VisualVariable> VisualVariables { get; set; }
Property Value
System.Collections.Generic.HashSet<VisualVariable>
Methods
SimpleRenderer.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.
SimpleRenderer.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.