Class Basemap
Represents the base map part of a Map.
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class Basemap : INotifyPropertyChanged, IApiKeyResource, ILoadable
Remarks
Typically, you will use one basemap layer that is drawn beneath all other layers,
but you can also add a reference layer on top of all other layers to depict boundaries,
labels, or a road network. In order to take advantage of geographically load-balanced
services and monitor usage with API keys or named users, use Basemap
Constructors
Name | Description |
---|---|
Basemap() | Initializes a new instance of the Basemap class. |
Basemap(Basemap |
Initializes a new instance of the Basemap class with a basemap style. |
Basemap(Layer) | Initializes a new instance of the Basemap class with the specified layer. |
Basemap(Item) | Initializes a new instance of the Basemap class with an ArcGIS Item. |
Basemap(IEnumerable<Layer>, IEnumerable<Layer>) | Initializes a new instance of the Basemap class with a set of predefined layers. |
Basemap(Uri) | Initializes a new instance of the Basemap class with a Uri to a portal item which is a web base map. |
Properties
Name | Description |
---|---|
Api |
Gets or sets the API key to access API key enabled services and resources in ArcGIS Online. |
Base |
Gets or sets the base layers of the base map. |
Item | Gets the ArcGIS Item |
Load |
Gets the load error for this instance - if any. |
Load |
Gets the load status of the instance. |
Name | Gets or sets the name of the base map. |
Reference |
Gets or sets the reference layers displayed on top of the Operational |
Uri | Gets the basemap's uri origin. |
Methods
Name | Description |
---|---|
Cancel |
Cancels an ongoing load. |
Clone() | Clones this instance of Basemap and its members. |
From |
Creates a base map from the json. |
Load |
Initiates loading of a basemap |
Load |
Load a base map from a uri resource |
On |
Raises the Property |
Retry |
Retry loading metadata for the instance in case of a load error. |
To |
Serializes the base map to json. |
Events
Name | Description |
---|---|
Loaded | Occurs when this instance is loaded. |
Load |
Occurs when the instance's LoadStatus has changed. |
Property |
Occurs when a property value changes. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |