Deze parameters en de mogelijke eigendomswaarden voor de respectieve objecten van dashboard widgetvelden stellen in staat om de Kaart widget te configureren in de methoden dashboard.create
en dashboard.update
.
De volgende parameters worden ondersteund voor de Kaart widget.
Parameter | type | name | value |
---|---|---|---|
Vernieuwingsinterval | 0 | rf_rate | 0 - Geen vernieuwing; 10 - 10 seconden; 30 - 30 seconden; 60 - 1 minuut; 120 - 2 minuten; 600 - 10 minuten; 900 - (standaard) 15 minuten. |
Bron type | 0 | source_type | 1 - (standaard) Kaart; 2 - Kaartnavigatieboom. |
Kaart | 8 | sysmapid | Kaart ID. Gedrag van de parameter: - vereist indien Bron type is ingesteld op "Kaart" |
Gekoppelde widget verwijzing | 1 | filter_widget_reference | Geldige waarde van parameter Referentie van Kaartnavigatieboom widget. Gedrag van de parameter: - vereist indien Bron type is ingesteld op "Kaartnavigatieboom" |
De volgende voorbeelden hebben als doel alleen de configuratie van de objecten van dashboard widgetvelden voor de Kaart widget te beschrijven. Voor meer informatie over het configureren van een dashboard, zie dashboard.create
.
Configureer een Kaart widget die de kaart "1" weergeeft.
{
"jsonrpc": "2.0",
"method": "dashboard.create",
"params": {
"name": "Mijn dashboard",
"display_period": 30,
"auto_start": 1,
"pages": [
{
"widgets": [
{
"type": "map",
"name": "Kaart",
"x": 0,
"y": 0,
"width": 18,
"height": 5,
"view_mode": 0,
"fields": [
{
"type": 8,
"name": "sysmapid",
"value": 1
}
]
}
]
}
],
"userGroups": [
{
"usrgrpid": 7,
"permission": 2
}
],
"users": [
{
"userid": 1,
"permission": 3
}
]
},
"id": 1
}
Reactie:
Configure a Map widget that is linked to a Map navigation tree widget.
{
"jsonrpc": "2.0",
"method": "dashboard.create",
"params": {
"name": "My dashboard",
"display_period": 30,
"auto_start": 1,
"pages": [
{
"widgets": [
{
"type": "map",
"name": "Map",
"x": 0,
"y": 5,
"width": 54,
"height": 5,
"view_mode": 0,
"fields": [
{
"type": 1,
"name": "sysmapid._reference",
"value": "ABCDE._mapid"
}
]
},
{
"type": "navtree",
"name": "Map navigation tree",
"x": 0,
"y": 0,
"width": 18,
"height": 5,
"view_mode": 0,
"fields": [
{
"type": 1,
"name": "navtree.1.name",
"value": "Element A"
},
{
"type": 1,
"name": "navtree.2.name",
"value": "Element B"
},
{
"type": 1,
"name": "navtree.3.name",
"value": "Element C"
},
{
"type": 1,
"name": "navtree.4.name",
"value": "Element A1"
},
{
"type": 1,
"name": "navtree.5.name",
"value": "Element A2"
},
{
"type": 1,
"name": "navtree.6.name",
"value": "Element B1"
},
{
"type": 1,
"name": "navtree.7.name",
"value": "Element B2"
},
{
"type": 0,
"name": "navtree.4.parent",
"value": 1
},
{
"type": 0,
"name": "navtree.5.parent",
"value": 1
},
{
"type": 0,
"name": "navtree.6.parent",
"value": 2
},
{
"type": 0,
"name": "navtree.7.parent",
"value": 2
},
{
"type": 0,
"name": "navtree.1.order",
"value": 1
},
{
"type": 0,
"name": "navtree.2.order",
"value": 2
},
{
"type": 0,
"name": "navtree.3.order",
"value": 3
},
{
"type": 0,
"name": "navtree.4.order",
"value": 1
},
{
"type": 0,
"name": "navtree.5.order",
"value": 2
},
{
"type": 0,
"name": "navtree.6.order",
"value": 1
},
{
"type": 0,
"name": "navtree.7.order",
"value": 2
},
{
"type": 8,
"name": "navtree.6.sysmapid",
"value": 1
},
{
"type": 1,
"name": "reference",
"value": "ABCDE"
}
]
}
]
}
],
"userGroups": [
{
"usrgrpid": 7,
"permission": 2
}
],
"users": [
{
"userid": 1,
"permission": 3
}
]
},
"id": 1
}
Response: