Map style sheet reference

Important

Bing Maps for Enterprise service retirement

The UWP MapControl and map services from the Windows.Services.Maps namespace 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"}}
}

Style sheets can be created interactively using the Map Style Sheet Editor application.