Skip to main content

Click on map

This message is sent when a click occurred on the map.

Headers

  • type : CLICK
  • author : SDK Id
  • recipients : Client Id
  • status : SENT

payload

  • pos : ARPos, coordinates of the click
  • hitEntities : List of ARBaseEntityRef , entities under the mouse when clicked
  • hitFeatures : List of features (not documented, exclusive use of the SDK)

Examples

Example of a click on the map
{
"type": "CLICK",
"payload": {
"pos": {
"lonLat": [
0.651229772676991,
47.4137162426381
]
},
"hitEntities": [],
"hitFeatures": []
},
"author": "<author id>",
"recipients": [
"<recipient id>"
],
"status": "SENT"
}
Example of a click on an operation
{
"type": "CLICK",
"payload": {
"pos": {
"lonLat": [
3.3370616449115,
46.5544674789828
]
},
"hitEntities": [
{
"entityType": "OPERATION",
"id": "OPERATION_06",
"idxSplit": 0
}
],
"hitFeatures": []
},
"author": "<author id>",
"recipients": [
"<recipient id>"
],
"status": "SENT"
}
Example of a click on a sequence
{
"type": "CLICK",
"payload": {
"pos": {
"lonLat": [
1.7163010323562,
46.8149601398389
]
},
"hitEntities": [
{
"entityType": "ACTIVITY",
"id": "000ZYX1DH01",
"index": 12
},
{
"entityType": "ITINERARY",
"id": "000ZYX1DH01"
}
],
"hitFeatures": []
},
"author": "<author id>",
"recipients": [
"<recipient id>"
],
"status": "SENT"
}