MapService
MapService
MapService
MapService
Class
Definition
Communicates with the online map services.
public : static class MapServicepublic static class MapServicePublic Static Class MapService// This API is not available in Javascript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
Your Universal Windows app must be authenticated before it can use the MapControl and map services in the Windows.Services.Maps namespace. To authenticate your app, you must specify a maps authentication key.
See Request a maps authentication key.
Properties
DataAttributions DataAttributions DataAttributions DataAttributions
Gets the data provider for the mapping services.
public : static PlatForm::String DataAttributions { get; }public static string DataAttributions { get; }Public Static ReadOnly Property DataAttributions As string// This API is not available in Javascript.
- Value
- PlatForm::String string string string
The data provider for the mapping services.
| Device family |
Windows 10 (introduced v10.0.10586.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v2)
|
DataUsagePreference DataUsagePreference DataUsagePreference DataUsagePreference
Gets or sets an object that specifies whether to use offline or online map data.
public : static MapServiceDataUsagePreference DataUsagePreference { get; set; }public static MapServiceDataUsagePreference DataUsagePreference { get; set; }Public Static ReadWrite Property DataUsagePreference As MapServiceDataUsagePreference// This API is not available in Javascript.
- Value
- MapServiceDataUsagePreference MapServiceDataUsagePreference MapServiceDataUsagePreference MapServiceDataUsagePreference
An object that specifies whether to use offline or online map data.
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
ServiceToken ServiceToken ServiceToken ServiceToken
Gets or sets the application ID and the authentication token required for use of the online mapping services.
public : static PlatForm::String ServiceToken { get; set; }public static string ServiceToken { get; set; }Public Static ReadWrite Property ServiceToken As string// This API is not available in Javascript.
- Value
- PlatForm::String string string string
The application ID and the authentication token required for use of the online mapping services.
- See Also
WorldViewRegionCode WorldViewRegionCode WorldViewRegionCode WorldViewRegionCode
Gets the three digit country code used by the Map service, based on the ISO 3166-1 alpha-3 codes.
public : static PlatForm::String WorldViewRegionCode { get; }public static string WorldViewRegionCode { get; }Public Static ReadOnly Property WorldViewRegionCode As string// This API is not available in Javascript.
- Value
- PlatForm::String string string string
The three digit country code used by the Map service, based on the ISO 3166-1 alpha-3 codes.