Show / Hide Table of Contents

Class Map

The map contains layers and additional properties and can be displayed in a MapView.

Inheritance
Object
GeoModel
Map
Implements
INotifyPropertyChanged
ILoadable
GeoModel.AllLayers
GeoModel.Basemap
GeoModel.Bookmarks
GeoModel.InitialViewpoint
GeoModel.Item
GeoModel.LoadSettings
GeoModel.OperationalLayers
GeoModel.SpatialReference
GeoModel.Tables
GeoModel.TransportationNetworks
GeoModel.Version
GeoModel.FloorDefinition
GeoModel.FloorManager
GeoModel.GeotriggersInfo
GeoModel.LoadAsync()
GeoModel.RetryLoadAsync()
GeoModel.LoadStatus
GeoModel.LoadError
GeoModel.CancelLoad()
GeoModel.Loaded
GeoModel.LoadStatusChanged
GeoModel.PropertyChanged
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class Map : GeoModel, INotifyPropertyChanged, ILoadable

Constructors

Name Description
Map()

Initializes a new instance of the Map class.

Map(SpatialReference)

Initializes a new instance of the Map class with a specified spatial reference.

Map(Basemap)

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

Map(BasemapStyle)

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

Map(Item)

Initializes a new instance of the Map class with an ArcGIS Item.

Map(Uri)

Initializes a new instance of the Map class with a Uri to a web map.

Properties

Name Description
BackgroundColor

Gets or sets the background color of the map.

MaxExtent

Gets or sets the extent that constrains the display to a specific region.

MaxScale

Gets or sets the maximum scale for the map.

MinScale

Gets or sets the minimum scale for the map.

OfflineSettings

Gets offline settings configured by the author of an online web map (if appropriate).

ReferenceScale

Gets or sets the reference scale for the map.

UnknownJson

Gets the unknown JSON from the webmap source JSON in a dictionary of JSON strings. This data will be lost if the webmap gets saved back to JSON.

UnsupportedJson

Gets the unsupported data from the webmap source JSON from the webmap source JSON in a dictionary of JSON strings. This data will be persisted in the document.

Uri

Gets the Uri for the map.

UtilityNetworks

Gets the list of UtilityNetwork in the map.

Methods

Name Description
Clone()

Clones this instance of the map and its members.

FromJson(String)

Creates a map from specified JSON.

GetNamedTraceConfigurationsFromUtilityNetworkAsync(UtilityNetwork)

Asynchronously retrieves a list of all UtilityNamedTraceConfiguration objects referenced by this map for the specified utility network.

GetNamedTraceConfigurationsFromUtilityNetworkAsync(UtilityNetwork, CancellationToken)

Asynchronously retrieves a list of all UtilityNamedTraceConfiguration objects referenced by this map for the specified utility network.

LoadFromUriAsync(Uri)

Creates a map from a Uri to a webmap and loads it.

SaveAsAsync(ArcGISPortal, PortalFolder, String, String, IEnumerable<String>, RuntimeImage, Boolean)

Save the map to a new PortalItem.

SaveAsAsync(ArcGISPortal, PortalFolder, String, String, IEnumerable<String>, RuntimeImage, Boolean, CancellationToken)

Save the map to a new PortalItem.

SaveAsync(Boolean)

Saves any changes that have been made to the map to the associated PortalItem.

SaveAsync(Boolean, CancellationToken)

Save any changes that have been made to the map to the associated PortalItem.

ToJson()

Converts a map into an ArcGIS JSON representation.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0

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.
Add graphics with symbols: Use a symbol style to display a graphic on a graphics overlay.
In This Article
Back to top Copyright © 2022 Esri.