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
JS API
</a>
public class SimpleMarkerSymbol : dymaptic.GeoBlazor.Core.Components.Symbols.MarkerSymbol,
System.IEquatable<dymaptic.GeoBlazor.Core.Components.Symbols.SimpleMarkerSymbol>
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Symbol 🡒 MarkerSymbol 🡒 SimpleMarkerSymbol
Implements System.IEquatable<SimpleMarkerSymbol>
Constructors
SimpleMarkerSymbol() Constructor
Parameterless constructor for using as a razor component
public SimpleMarkerSymbol();
SimpleMarkerSymbol(Outline, MapColor, Nullable, string, Nullable, Nullable, Nullable) 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, System.Nullable<double> size=null, string? style=null, System.Nullable<double> angle=null, System.Nullable<double> xOffset=null, System.Nullable<double> yOffset=null);
Parameters
outline
Outline
The outline of the marker symbol.
color
MapColor
The color of the marker symbol.
size
System.Nullable<System.Double>
The size of the marker in points.
style
System.String
The marker style.
angle
System.Nullable<System.Double>
The angle of the marker relative to the screen in degrees.
xOffset
System.Nullable<System.Double>
The offset on the x-axis in points.
yOffset
System.Nullable<System.Double>
The offset on the y-axis in points.
Properties
SimpleMarkerSymbol.Outline Property
The outline of the marker symbol.
public dymaptic.GeoBlazor.Core.Components.Symbols.Outline? Outline { get; set; }
Property Value
SimpleMarkerSymbol.Size Property
The size of the marker in points.
public System.Nullable<double> Size { get; set; }
Property Value
System.Nullable<System.Double>
SimpleMarkerSymbol.Style Property
The marker style.
public string? Style { get; set; }
Property Value
SimpleMarkerSymbol.Type Property
The symbol type
public override string Type { get; }
Property Value
Methods
SimpleMarkerSymbol.Equals(object) Method
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj);
Parameters
obj
System.Object
The object to compare with the current object.
Returns
System.Boolean
true if the specified object is equal to the current object; otherwise, false.
SimpleMarkerSymbol.GetHashCode() Method
Serves as the default hash function.
public override int GetHashCode();
Returns
System.Int32
A hash code for the current object.
SimpleMarkerSymbol.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
Exceptions
InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.
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
SimpleMarkerSymbol.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();
Exceptions
MissingRequiredChildElementException
The consumer needs to provide the missing child component
MissingRequiredOptionsChildElementException
The consumer needs to provide ONE of the options of child components
Operators
SimpleMarkerSymbol.operator ==(SimpleMarkerSymbol, SimpleMarkerSymbol) Operator
Compares two SimpleMarkerSymbol objects for equality
public static bool operator ==(dymaptic.GeoBlazor.Core.Components.Symbols.SimpleMarkerSymbol? left, dymaptic.GeoBlazor.Core.Components.Symbols.SimpleMarkerSymbol? right);
Parameters
left
SimpleMarkerSymbol
right
SimpleMarkerSymbol
Returns
SimpleMarkerSymbol.operator !=(SimpleMarkerSymbol, SimpleMarkerSymbol) Operator
Compares two SimpleMarkerSymbol objects for inequality
public static bool operator !=(dymaptic.GeoBlazor.Core.Components.Symbols.SimpleMarkerSymbol? left, dymaptic.GeoBlazor.Core.Components.Symbols.SimpleMarkerSymbol? right);
Parameters
left
SimpleMarkerSymbol
right
SimpleMarkerSymbol