Property ReferenceBasemapFilename
ReferenceBasemapFilename
Gets or sets the name of a local basemap file on the device that can be used rather than downloading an online basemap.
Declaration
public string ReferenceBasemapFilename { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The name of a local basemap file on the device that can be used rather than downloading an online basemap. |
Remarks
The local basemap filename can reference any supported local basemap type, including:
- a tile package (.tpk or .tpkx)
- a vector tile package (.vtpk)
- a supported raster data file
This property can be read directly from settings applied by the author of the online web map (see OfflineSettings) or set by user code to a file known to be on the device. This property will be populated from online settings when created with CreateDefaultGenerateOfflineMapParametersAsync(Geometry).
If you wish to use the specified local basemap rather than downloading, you must also set ReferenceBasemapDirectory.
If the directory does not exist, or does not contain the specified basemap, the GenerateOfflineMapJob will fail.
The spatial reference of the reference basemap is used for the offline map when it is different to the online map's spatial reference.
Note that this property is ignored if IncludeBasemap is false.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.5 - 200.8 |
| .NET | 100.13 - 300.1 |
| .NET Windows | 100.13 - 300.1 |
| .NET Android | 200.0 - 300.1 |
| .NET iOS | 200.0 - 300.1 |
| .NET Framework | 100.5 - 200.8 |
| Xamarin.Android | 100.5 - 100.15 |
| Xamarin.iOS | 100.5 - 100.15 |
| UWP | 100.5 - 200.8 |