layout: default title: WebMap parent: Core Classes —
dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
WebMap Class
Loads a WebMap from ArcGIS Online or ArcGIS Enterprise portal into a MapView. It defines the content, style, and
bookmarks of your webmap, and it can be shared across multiple ArcGIS web and desktop applications.
ArcGIS Maps SDK for JavaScript
public class WebMap : dymaptic.GeoBlazor.Core.Components.Map
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Map 🡒 WebMap
Properties
WebMap.PortalItem Property
The portal item from which the WebMap is loaded.
public dymaptic.GeoBlazor.Core.Components.PortalItem? PortalItem { get; set; }
Property Value
Methods
WebMap.GetBookmarks() Method
Gets the bookmarks defined in the WebMap from layers
public System.Threading.Tasks.Task<System.Collections.Generic.List<dymaptic.GeoBlazor.Core.Components.Widgets.Bookmark>> GetBookmarks();
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<Bookmark>>
A list of bookmarks or null
WebMap.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.
WebMap.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.