MapService MapService MapService MapService Class

Definition

Communicates with the online map services.

public : static class MapService
static struct winrt::Windows::Services::Maps::MapService
public static class MapService
Public Shared Class MapService
Attributes

Windows 10 requirements

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.

Version history

Windows version SDK version Value added
1511 10586 DataAttributions
1703 15063 DataUsagePreference

Properties

DataAttributions DataAttributions DataAttributions DataAttributions

Gets the data provider for the mapping services.

DataUsagePreference DataUsagePreference DataUsagePreference DataUsagePreference

Gets or sets an object that specifies whether to use offline or online map data.

ServiceToken ServiceToken ServiceToken ServiceToken

Gets or sets the application ID and the authentication token required for use of the online mapping services.

WorldViewRegionCode WorldViewRegionCode WorldViewRegionCode WorldViewRegionCode

Gets the three digit country code used by the Map service, based on the ISO 3166-1 alpha-3 codes.

See also