Show / Hide Table of Contents

Constructor Map

Map()

Initializes a new instance of the Map class.

Declaration
public Map()
See Also
LoadAsync()
SpatialReference

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8
Relevant samples
Display layer view state: Determine if a layer is currently being viewed.

Map(Basemap)

Initializes a new instance of the Map class with a Basemap.

Declaration
public Map(Basemap basemap)
Parameters
Type Name Description
Basemap basemap

The basemap for the map.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8
Relevant samples
Access load status: Determine the map's load status which can be `NotLoaded`, `FailedToLoad`, `Loading`, `Loaded`.
Add ENC exchange set: Display nautical charts per the ENC specification.
Add features: Add features to a feature layer.
Analyze hotspots: Use a geoprocessing service and a set of features to identify statistically significant hot spots and cold spots.

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
TargetVersions
.NET Standard 2.0100.10 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.10 - 200.8
Xamarin.Android100.10 - 100.15
Xamarin.iOS100.10 - 100.15
UWP100.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
PortalItem
GeoModel

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.2 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8
Relevant samples
Show location history: Display your location history on the map.

Map(Item)

Initializes a new instance of the Map class with a portal item of type WebMap.

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
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8
Relevant samples
List related features: List features related to the selected feature.
Map reference scale: Set the map's reference scale and which feature layers should honor the reference scale.

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
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8
Relevant samples
Buffer list: Generate multiple individual buffers or a single unioned buffer around multiple points.
Clip geometry: Clip a geometry with another geometry.
In This Article
Back to top Copyright © 2022 Esri.