Create a map chart
- Last UpdatedMay 04, 2022
- 1 minute read
This example produces a map chart using the following parameters:
-
The chart type is a map chart that uses the "mph" tag group.
-
The map is zoomed to level 10 and centered at specified latitude and longitude coordinates..
-
A keyword ("Windy") is assigned to this content.
{
"upsert": {
"Name": "Map Chart ContentWithScript",
"UserID": "wally.wonderware@gmail.com",
"CreatedUserFirstName": "Wally",
"CreatedUserLastName": "Wonderware",
"ChartType": "Map Chart",
"LayoutInfo": {
"Layout": [
{
"Name": "mph",
"IsActiveGroup": "true",
"LayoutProperties": {
"selectedOptions": {
"map": {
"zoomLevel": 10,
"center": {
"Longitude": -110.44413636978399,
"Latitude": 48.38785248165351
}
}
}
}
}
],
"TagDetails": [
{
"TagName": "Weatherapp.Auckland.Wind Speed",
"IsSelected": "true"
},
{
"TagName": "Weatherapp.Dallas.Wind Speed",
"IsSelected": "true"
}
]
},
"Keywords": [
"Windy"
],
"Scope": "/"
}
}