Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
The UWP MapControl and Windows Maps platform APIs (Windows.Services.Maps.*) are deprecated and may not be available in future versions of Windows. For more information, see Resources for deprecated features.
Important
Bing Maps for Enterprise service retirement
The UWP MapControl and map services from the Windows.Services.Maps namespaces rely on Bing Maps. Bing Maps for Enterprise is deprecated and will be retired, at which point the MapControl and services will no longer receive data.
For more information, see the Bing Maps Developer Center and Bing Maps documentation.
Microsoft mapping technologies use map style sheets to define the appearance of maps, including those displayed in a MapControl. A map style sheet is defined using JavaScript Object Notation (JSON) through the MapStyleSheet.ParseFromJson method.
A style sheet consists of entries whose properties are overridden to change the final appearance of the map.
For example, the following JSON can be used to make water areas appear in red, water labels appear in green, and land areas appear in blue:
{"version":"1.*",
"settings":{"landColor":"#0000FF"},
"elements":{"water":{"fillColor":"#FF0000","labelColor":"#00FF00"}}
}