dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
Map Class
The Map class contains properties and methods for storing, managing, and overlaying layers common to both 2D and 3D viewing. Layers can be added and removed from the map, but are rendered via a MapView (for viewing data in 2D) or a SceneView (for viewing data in 3D). Thus a map instance is a simple container that holds the layers, while the View is the means of displaying and interacting with a map’s layers and basemap.
ArcGIS JS API
public class Map : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Map
Properties
Map.ArcGISDefaultBasemap Property
Sets the basemap by way of the arcgis basemap name (e.g., arcgis-topographic).
public string? ArcGISDefaultBasemap { get; set; }
Property Value
Remarks
Either ArcGISDefaultBasemap or Basemap should be set, but not both.
Map.Basemap Property
The Basemap for this map.
public dymaptic.GeoBlazor.Core.Components.Basemap? Basemap { get; set; }
Property Value
Remarks
Either ArcGISDefaultBasemap or Basemap should be set, but not both.
Map.Ground Property
Specifies the surface properties for the map.
public string? Ground { get; set; }
Property Value
Map.Layers Property
A collection of operational Layers.
public System.Collections.Generic.HashSet<dymaptic.GeoBlazor.Core.Components.Layers.Layer> Layers { get; set; }
Property Value
System.Collections.Generic.HashSet<Layer>
Methods
Map.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.
Map.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
Map.UpdateComponent() Method
Checks if the map is already rendered, and if so, performs forced updates as defined by the component type.
public override System.Threading.Tasks.Task UpdateComponent();
Returns
Map.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