dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Geometries

Geometry Class

The base class for geometry objects.
ArcGIS Maps SDK for JavaScript

public abstract class Geometry : dymaptic.GeoBlazor.Core.Components.MapComponent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Geometry

Derived
Extent
Point
Polygon
Polyline

Properties

Geometry.Cache Property

The cache is used to store values computed from geometries that need to be cleared or recomputed upon mutation.
ArcGIS Maps SDK for JavaScript

public string? Cache { get; set; }

Property Value

System.String

Geometry.Extent Property

The Extent of the geometry.

public dymaptic.GeoBlazor.Core.Components.Geometries.Extent? Extent { get; set; }

Property Value

Extent

Geometry.HasM Property

Indicates if the geometry has M values.
ArcGIS Maps SDK for JavaScript

public System.Nullable<bool> HasM { get; set; }

Property Value

System.Nullable<System.Boolean>

Geometry.HasZ Property

Indicates if the geometry has z-values (elevation).
ArcGIS Maps SDK for JavaScript

public System.Nullable<bool> HasZ { get; set; }

Property Value

System.Nullable<System.Boolean>

Geometry.SpatialReference Property

The spatial reference of the geometry.
default WGS84 (wkid: 4326)
ArcGIS Maps SDK for JavaScript

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

Property Value

SpatialReference

Geometry.Type Property

The Geometry “type”, used internally to render.

public abstract dymaptic.GeoBlazor.Core.Enums.GeometryType Type { get; }

Property Value

GeometryType

Methods

Geometry.GetCache() Method

Asynchronously retrieve the current value of the Cache property.

public System.Threading.Tasks.Task<string?> GetCache();

Returns

System.Threading.Tasks.Task<System.String>

Geometry.GetExtent() Method

Asynchronously retrieve the current value of the SpatialReference property.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.Geometries.Extent?> GetExtent();

Returns

System.Threading.Tasks.Task<Extent>

Geometry.GetHasM() Method

Asynchronously retrieve the current value of the HasM property.

public System.Threading.Tasks.Task<System.Nullable<bool>> GetHasM();

Returns

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

Geometry.GetHasZ() Method

Asynchronously retrieve the current value of the HasZ property.

public System.Threading.Tasks.Task<System.Nullable<bool>> GetHasZ();

Returns

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

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

Geometry.SetHasM(Nullable) Method

Asynchronously set the value of the HasM property after render.

public System.Threading.Tasks.Task SetHasM(System.Nullable<bool> value);

Parameters

value System.Nullable<System.Boolean>

The value to set.

Returns

System.Threading.Tasks.Task

Geometry.SetHasZ(Nullable) Method

Asynchronously set the value of the HasZ property after render.

public System.Threading.Tasks.Task SetHasZ(System.Nullable<bool> value);

Parameters

value System.Nullable<System.Boolean>

The value to set.

Returns

System.Threading.Tasks.Task

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

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