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

Derived
WebMap
WebScene

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

System.String

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

Basemap

Map.Ground Property

Specifies the surface properties for the map.

public string? Ground { get; set; }

Property Value

System.String

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

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

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.

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();

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