dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Symbols

SimpleFillSymbol Class

SimpleFillSymbol is used for rendering 2D polygons in either a MapView
or a SceneView.
ArcGIS Maps SDK for JavaScript

public class SimpleFillSymbol : dymaptic.GeoBlazor.Core.Components.Symbols.FillSymbol,
dymaptic.GeoBlazor.Core.Interfaces.ISymbol2D,
dymaptic.GeoBlazor.Core.Interfaces.ISymbol2D3D,
dymaptic.GeoBlazor.Core.Interfaces.ISymbolsSymbol,
dymaptic.GeoBlazor.Core.Interfaces.IMapComponent,
dymaptic.GeoBlazor.Core.Interfaces.ISymbolsFillSymbol

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Symbol 🡒 FillSymbol 🡒 SimpleFillSymbol

Implements ISymbol2D, ISymbol2D3D, ISymbolsSymbol, IMapComponent, ISymbolsFillSymbol

Constructors

SimpleFillSymbol() Constructor

Parameterless constructor for use as a Razor Component.

public SimpleFillSymbol();

SimpleFillSymbol(Outline, MapColor, Nullable) Constructor

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

public SimpleFillSymbol(dymaptic.GeoBlazor.Core.Components.Symbols.Outline? outline=null, dymaptic.GeoBlazor.Core.Model.MapColor? color=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.SimpleFillSymbolStyle> style=null);

Parameters

outline Outline

The outline of the polygon.
ArcGIS Maps SDK for JavaScript

color MapColor

The color of the symbol.
default [0, 0, 0, 0.25] - black, semitransparent
ArcGIS Maps SDK for JavaScript

style System.Nullable<SimpleFillSymbolStyle>

The fill style.
default “solid”
ArcGIS Maps SDK for JavaScript

Properties

SimpleFillSymbol.Style Property

The fill style.

public System.Nullable<dymaptic.GeoBlazor.Core.Enums.SimpleFillSymbolStyle> Style { get; set; }

Property Value

System.Nullable<SimpleFillSymbolStyle>

SimpleFillSymbol.Type Property

The symbol type

public override dymaptic.GeoBlazor.Core.Enums.SymbolType Type { get; }

Property Value

SymbolType

Methods

SimpleFillSymbol.GetStyle() Method

Asynchronously retrieve the current value of the Style property.

public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.SimpleFillSymbolStyle>> GetStyle();

Returns

System.Threading.Tasks.Task<System.Nullable<SimpleFillSymbolStyle>>

SimpleFillSymbol.RegisterChildComponent(MapComponent) Method

Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnInitializedAsync to “Register” the current component with its 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.

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.

SimpleFillSymbol.SetStyle(Nullable) Method

Asynchronously set the value of the Style property after render.

public System.Threading.Tasks.Task SetStyle(System.Nullable<dymaptic.GeoBlazor.Core.Enums.SimpleFillSymbolStyle> value);

Parameters

value System.Nullable<SimpleFillSymbolStyle>

The value to set.

Returns

System.Threading.Tasks.Task

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

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.

SimpleFillSymbol.ValidateRequiredChildren() Method

When a MapView is prepared to render, this will check to make sure that all properties with the RequiredPropertyAttribute are provided.

public override void ValidateRequiredChildren();

Implements ValidateRequiredChildren()

Exceptions

MissingRequiredChildElementException
The consumer needs to provide the missing child component

MissingRequiredOptionsChildElementException
The consumer needs to provide ONE of the options of child components