Property Maps
Maps
Gets a collection of Maps from the MobileMapPackage.
Declaration
public IReadOnlyList<Map> Maps { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.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
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
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.