layout: default title: Map parent: Core Classes —
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 Maps SDK for JavaScript
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
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.List<dymaptic.GeoBlazor.Core.Components.Layers.Layer> Layers { get; set; }
Property Value
System.Collections.Generic.List<Layer>
Methods
Map.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
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.
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
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.