Show / Hide Table of Contents

Property Maps

Maps

Gets a collection of Maps from the MobileMapPackage.

Declaration
public IReadOnlyList<Map> Maps { get; }
Property Value
Type Description
IReadOnlyList<Map>

A collection of Maps from the MobileMapPackage.

Remarks

To use the maps in a MobileMapPackage, you first need to load the package.

If the mobile map package was created with ArcGIS Pro, the maps are presented in the same order in which they were packaged. Mobile map packages created with the OfflineMapTask will only contain one map.

If you display the map by setting the map to a MapView, the map will automatically load. If you only need to access the map's content or metadata, you will need to load it by calling LoadAsync(). If the package is not loaded, an empty collection is returned.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.0 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.14
UWP100.0 - 100.14
Relevant samples
Control annotation sublayer visibility: Use annotation sublayers to gain finer control of annotation layer subtypes.
Mobile map (search and route): Display maps and use locators to enable search and routing offline using a Mobile Map Package.
In This Article
Back to top Copyright © 2021 Esri.