layout: default title: Basemap parent: Core Classes —
dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
Basemap Class
Creates a new basemap object. Basemaps can be created from a PortalItem, from a well known basemap ID, or can be
used for creating custom basemaps. These basemaps may be created from tiled services you publish to your own
server, or from tiled services published by third parties.
ArcGIS Maps SDK for JavaScript
public class Basemap : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Basemap
Properties
Basemap.Layers Property
A collection of tile layers that make of the basemap’s features.
public System.Collections.Generic.List<dymaptic.GeoBlazor.Core.Components.Layers.Layer> Layers { get; set; }
Property Value
System.Collections.Generic.List<Layer>
Basemap.PortalItem Property
The PortalItem
public dymaptic.GeoBlazor.Core.Components.PortalItem? PortalItem { get; set; }
Property Value
Basemap.Style Property
The style of the basemap from the basemap styles service (v2). The basemap styles service is a ready-to-use location service that serves vector and image tiles representing geographic features around the world.
You can use the service to display:
- Streets and navigation styles
- Imagery, oceanic, and topographic styles
- OSM standard and streets styles
- Creative styles such as nova and blue print
- Localized place labels
Use of the basemap style service requires authentication via an API key or user authentication. To learn more about API keys, see the API keys section in the ArcGIS Developer documentation.
public dymaptic.GeoBlazor.Core.Components.BasemapStyle? Style { get; set; }
Property Value
Methods
Basemap.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.
Basemap.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.