Websocket Map


Static Icons

 

Static icons are icons that can be added or removed from the map, and are typically temporary locations of for example a customers address where work needs to be carried out. The icon could be changed to reflect the current stage of the work (provisioned, in progress, overdue, completed etc).

 

Notes:

1) Add & Delete messages are arrays, so that icons can be added and removed in bulk.

2) If an icon already exists, the original is removed and replaced with new icon/location.

3) "id" is a unique string, and is also the name of the icon that is displayed below it.

 

{
"addIcon" : [
  {
  "id":"idRefString",
  "lat":1.12345,
  "lon":50.12345,
  "icon":"buiding.png",
  "text":"Nice place for fish & chips",
  }
]
}

{
"delIcon" : [
  {
  "id":"idRefString",
  }
]
}