layout: default title: SimpleMarkerSymbol parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Symbols

SimpleMarkerSymbol Class

SimpleMarkerSymbol is used for rendering 2D Point geometries with a simple shape and color in either a MapView or a
SceneView. It may be filled with a solid color and have an optional outline, which is defined with a
SimpleLineSymbol.
ArcGIS Maps SDK for JavaScript

public class SimpleMarkerSymbol : dymaptic.GeoBlazor.Core.Components.Symbols.MarkerSymbol

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Symbol 🡒 MarkerSymbol 🡒 SimpleMarkerSymbol

Constructors

SimpleMarkerSymbol() Constructor

Parameterless constructor for using as a razor component

public SimpleMarkerSymbol();

SimpleMarkerSymbol(Outline, MapColor, Dimension, Nullable, Nullable, Dimension, Dimension) Constructor

Constructs a new SimpleMarkerSymbol in code with parameters

public SimpleMarkerSymbol(dymaptic.GeoBlazor.Core.Components.Symbols.Outline? outline=null, dymaptic.GeoBlazor.Core.Objects.MapColor? color=null, dymaptic.GeoBlazor.Core.Objects.Dimension? size=null, System.Nullable<dymaptic.GeoBlazor.Core.Components.Symbols.SimpleMarkerStyle> style=null, System.Nullable<double> angle=null, dymaptic.GeoBlazor.Core.Objects.Dimension? xOffset=null, dymaptic.GeoBlazor.Core.Objects.Dimension? yOffset=null);

Parameters

outline Outline

The outline of the marker symbol.

color MapColor

The color of the marker symbol.

size Dimension

The size of the marker in points.

style System.Nullable<SimpleMarkerStyle>

The marker style.

angle System.Nullable<System.Double>

The angle of the marker relative to the screen in degrees.

xOffset Dimension

The offset on the x-axis in points. This value may be autocast with a string expressing size in points or pixels (e.g. 12px).

yOffset Dimension

The offset on the y-axis in points. This value may be autocast with a string expressing size in points or pixels (e.g. 12px).

Properties

SimpleMarkerSymbol.MarkerStyle Property

The marker style.

public System.Nullable<dymaptic.GeoBlazor.Core.Components.Symbols.SimpleMarkerStyle> MarkerStyle { get; set; }

Property Value

System.Nullable<SimpleMarkerStyle>

SimpleMarkerSymbol.Outline Property

The outline of the marker symbol.

public dymaptic.GeoBlazor.Core.Components.Symbols.Outline? Outline { get; set; }

Property Value

Outline

SimpleMarkerSymbol.Size Property

The size of the marker in points. This value may be autocast with a string expressing size in points or pixels (e.g. 12px).

public dymaptic.GeoBlazor.Core.Objects.Dimension? Size { get; set; }

Property Value

Dimension

SimpleMarkerSymbol.Type Property

The symbol type

public override string Type { get; }

Property Value

System.String

Methods

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

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.

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