Constructor Basemap
Basemap()
Initializes a new instance of the Basemap class. Layers need to be added to the basemap before it can be used.
Declaration
public Basemap()
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
Basemap(Layer)
Initializes a new instance of the Basemap class with the specified layer.
Declaration
public Basemap(Layer baseLayer)
Parameters
Type | Name | Description |
---|---|---|
Layer | baseLayer | The base layer to add to the BaseLayers collection. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
Relevant samples
Basemap(IEnumerable<Layer>, IEnumerable<Layer>)
Initializes a new instance of the Basemap class with a set of base and reference layers.
Declaration
public Basemap(IEnumerable<Layer> baseLayers, IEnumerable<Layer> referencelayers = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Layer> | baseLayers | The base layers to add to the BaseLayers collection. |
System.Collections.Generic.IEnumerable<Layer> | referencelayers | The reference layers to add to the ReferenceLayers collection. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.14 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
Basemap(Uri)
Initializes a new instance of the Basemap class with a Uri to a portal item which is a web base map.
Declaration
public Basemap(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri | The base map URI, commonly the that of a web map portal item. |
Remarks
The uri parameter may be a direct Uri to web map JSON content or the Uri of a portal item. Examples of supported portal item Uri values:
- http://www.arcgis.com/home/item.html?id=<web_map_id>
- http://www.arcgis.com/home/webmap/viewer.html?webmap=<web_map_id>
- http://www.arcgis.com/sharing/rest/content/items/<web_map_id>/data
If the specified URI is a portal item URL (see PortalItem(String, ArcGISPortal) for the supported URL formats), the underlying PortalItem will be created and accessible through Item.
See Also
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.14 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
Relevant samples
Basemap(Item)
Declaration
public Basemap(Item item)
Parameters
Type | Name | Description |
---|---|---|
Item | item | A web map PortalItem. |
Remarks
The PortalItem automatically loads when the base map loads. If the loaded Item is not a portal item of type WebMap, the basemap fails to load.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
Basemap(BasemapStyle)
Initializes a new instance of the Basemap class with a BasemapStyle. These basemaps are secured and access requires either an API key or an authenticated user.
Declaration
public Basemap(BasemapStyle style)
Parameters
Type | Name | Description |
---|---|---|
BasemapStyle | style | The basemap style. |
Remarks
These basemaps are secured and access requires either an ApiKey or an authenticated user.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.10 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.10 - 200.6 |
Xamarin.Android | 100.10 - 100.15 |
Xamarin.iOS | 100.10 - 100.15 |
UWP | 100.10 - 200.6 |
Basemap(BasemapStyle, BasemapStyleParameters)
Initializes a new instance of the Basemap class with a BasemapStyle and additional parameters to control settings like language.
Declaration
public Basemap(BasemapStyle style, BasemapStyleParameters basemapStyleParameters)
Parameters
Type | Name | Description |
---|---|---|
BasemapStyle | style | The basemap style. |
BasemapStyleParameters | basemapStyleParameters | Parameters that control how the BasemapStyle is used - for example by adjusting the language used for basemap labels. |
Remarks
These basemaps are secured and access requires either an ApiKey or an authenticated user.
The initial state of the Basemap is NotLoaded. When the Basemap is loaded the values specified in the BasemapStyleParameters are evaluated. See BasemapStyleParameters for information about the expected behavior for each parameter when the Basemap is loaded.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 200.3 - 200.6 |
.NET | 200.3 - 200.6 |
.NET Windows | 200.3 - 200.6 |
.NET Android | 200.3 - 200.6 |
.NET iOS | 200.3 - 200.6 |
.NET Framework | 200.3 - 200.6 |
UWP | 200.3 - 200.6 |