dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Geometries
Geometry Class
The base class for geometry objects. This class has no constructor. To construct geometries see
Point, PolyLine, or Polygon.
ArcGIS
JS API
</a>
public class Geometry : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Geometry
Derived
↳ Extent
↳ Point
↳ Polygon
↳ PolyLine
Properties
Geometry.Extent Property
The Extent of the geometry.
public dymaptic.GeoBlazor.Core.Components.Geometries.Extent? Extent { get; set; }
Property Value
Geometry.SpatialReference Property
The SpatialReference of the geometry.
public dymaptic.GeoBlazor.Core.Components.Geometries.SpatialReference? SpatialReference { get; set; }
Property Value
Geometry.Type Property
The Geometry “type”, used internally to render.
public virtual string Type { get; }
Property Value
Methods
Geometry.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.
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
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();
Exceptions
MissingRequiredChildElementException
The consumer needs to provide the missing child component
MissingRequiredOptionsChildElementException
The consumer needs to provide ONE of the options of child components