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.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
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.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
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.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 |
Map(Uri)
Initializes a new instance of the Map class with a Uri 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 uri
may be a direct Uri to web map JSON content or the Uri of a portal item.
If the specified URL is a portal item URL, the underlying PortalItem is created and can be accessed through Map(Item). The URL can be a URL to web map JSON content 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 Map Viewer 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
Examples of supported portal item Uri values:
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
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.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
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.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 |