Property ReferenceBasemapDirectory
ReferenceBasemapDirectory
Gets or sets the path to a directory on the device where the local basemap file is located.
Declaration
public string ReferenceBasemapDirectory { get; set; }
Property Value
Type | Description |
---|---|
System. |
The path to a directory on the device where the local basemap file is located. |
Remarks
Set this property to use a basemap which is already on the device (rather
than downloading it). The directory should only be set when
Reference
This property supports any directory specified as either:
- An absolute path.
-
A path relative to the parent directory of the generated mobile map package
(see downloadPath for
Download
Preplanned .Offline Map(Download Preplanned Offline Map Parameters, String)
If the directory does not exist, or does not contain the specified basemap, the
Download
Note that, the mobile map package will store either a relative or absolute path to the reference basemap file so that it can be opened in the future.
A relative path typically begins with "." to denote the parent directory of the
resulting mobile map package or ".." to move up one directory. The parent directory
of the mobile map package will be set when calling
Generate
For example, to download a mobile map package to "[my root path]/my_offline_maps/my_mobile_map_package", which uses a reference basemap in "[my root path]/other_maps/my_basemap.tpk", you would set the relative path as follows:
-
Download
Directory to "[my root path]/my_offline_maps/my_mobile_map_package"Path -
Reference
Basemap to "../other_maps"Directory -
Reference
Basemap to "my_basemap.tpk"Filename
Note that, this property is ignored if
Includefalse
.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 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.5 - 200.6 |
Xamarin.Android | 100.5 - 100.15 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 200.6 |