Constructor Map
Map()
Initializes a new instance of the Map class.
Declaration
public Map()See Also
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.0 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.15 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
Relevant samples
Map(Basemap)
Declaration
public Map(Basemap basemap)Parameters
| Type | Name | Description | 
|---|---|---|
| Basemap | basemap | The basemap for the map. | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.0 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.15 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
Relevant samples
Map(BasemapStyle)
Initializes a new instance of the Map class with a BasemapStyle.
Declaration
public Map(BasemapStyle basemapStyle)Parameters
| Type | Name | Description | 
|---|---|---|
| BasemapStyle | basemapStyle | Style of the basemap. | 
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.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.0 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.10 - 200.8 | 
| Xamarin.Android | 100.10 - 100.15 | 
| Xamarin.iOS | 100.10 - 100.15 | 
| UWP | 100.10 - 200.8 | 
Map(Uri)
Initializes a new instance of the Map class with a URL to a web map.
Declaration
public Map(Uri uri)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Uri | uri | Uri of a web map on ArcGIS Online or ArcGIS Enterprise portal. A PortalItem will be created to reference the web map and accessible through Item. | 
Remarks
 If the specified uri is a portal item URL,
 the underlying PortalItem is created and can be
 accessed through Item.
 The URL can be a direct URL to a web map or the URL of a portal item.
Examples of supported URL formats:
- The web map viewer page, for example: https://www.arcgis.com/apps/mapviewer/index.html?webmap=55ebf90799fa4a3fa57562700a68c405
- The web map viewer page (classic), for example: https://www.arcgis.com/home/webmap/viewer.html?webmap=55ebf90799fa4a3fa57562700a68c405
- The web map item details page, for example: https://www.arcgis.com/home/item.html?id=55ebf90799fa4a3fa57562700a68c405
- The REST sharing API data page, for example: https://www.arcgis.com/sharing/rest/content/items/55ebf90799fa4a3fa57562700a68c405/data
- The REST sharing API page (with or without the query parameter f=json), for example: https://www.arcgis.com/sharing/rest/content/items/55ebf90799fa4a3fa57562700a68c405?f=json
See Also
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.14 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
Relevant samples
Map(Item)
Declaration
public Map(Item item)Parameters
| Type | Name | Description | 
|---|---|---|
| Item | item | The web map item. Only PortalItem are supported. | 
Remarks
The PortalItem automatically loads when the map loads. If the loaded Item is not a portal item of type WebMap, the map fails to load.
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.0 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.15 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
Relevant samples
Map(SpatialReference)
Initializes a new instance of the Map class with a specified spatial reference.
Declaration
public Map(SpatialReference spatialReference)Parameters
| Type | Name | Description | 
|---|---|---|
| SpatialReference | spatialReference | The spatial reference to use on the map. | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.0 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.15 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 |