The page gives an example of setting up a list of labels in JSON format.
NOTE. When XML is automatically converted to JSON, the "@" character, which does not need to be removed, appears before attributes.
"ItemsDictionary" :
{
//The item must be preceded with the fonts list.
"MapLabel" :
[
{
"Background" : "{GrayBrush}",//of the list of brushes
"Width" : "100",
"MaskText" : "Country {0}",
"Top" : "10",
"Text" : "DefaultCountry",
"BorderRadius" : "0",
"Padding" : "2 2 2 2",
"Font" : "{BlackFont}",//of the list of fonts
"Height" : "400",
"BorderThickness" : "1",
"Left" : "5",
"Id" : "CountriesLabel",
"BorderColor" : "White",
"TextWrapping" : "NoWrap",
"Margin" : "2 2 2 2"
},
{
"@Background": "{GrayBrush}",
"@Width": "100",
"@MaskText": "Region {0}",
"@Top": "10",
"@Text": "DefaultRegion",
"@BorderRadius": "0",
"@Padding": "2 2 2 2",
"@Font": "{BlackFont}",
"@Visibility": "Visible",
"@Height": "400",
"@BorderThickness": "1",
"@Left": "5",
"@BorderColor": "White",
"@TextWrapping": "NoWrap",
"@Margin": "2 2 2 2",
"@Id": "RegionsLabel"
}
]
//It is typically followed by description of the tooltip
}
See also: