JSON Format

This is the Format which can be used with the OpenDataMap by default

{
"nodes": [
{
"latitude": 50.124,
"longitude": 7.234,
"showOnMap": true,
"showOnSidebar": true,
"name": "nodeName",
"online": true
}
],
"config": {
"name": "layerName"
}
}

nodes (Array)

nodes is the Array where the node-Objects are in.

"nodes": [
{
"latitude": 50.124,
"longitude": 7.234,
"showOnMap": true,
"showOnSidebar": true,
"name": "nodeName",
"online": true
}
],

latitude/longitude (Number)

latitude and longitude are Number/Integer. They will be used to display the node on the map.

Show Node
Disable Node
"latitude": 50.124,
"longitude": 7.234,
"showOnMap": true

Set the coordinates and showOnMap to true

"latitude": 0,
"longitude": 0,
"showOnMap": false

Set the coordinates to 0 and showOnMap to false if the node doesn't have coordinates or you don't want to display it.

showOnSidebar (Boolean)

showOnSidebar is a Boolean. It will be used to activate adding a node on sidebar.

"showOnSidebar": true

name (String)

name is a String. It will be used to add a tooltip on the map and add the node at the sidebar.

"name": "Node 1"

online (Boolean)

online is a Boolean. It will be used to change the color of the node on the map to red.

"online": true

config

config is the Object where all config attributes of the layer are defined.

"config": {
"name": "layerName"
}

name (String)

name is a String. It will be used for the Name of the Layer and the name of the tab in the sidebar.

"name": "This is my First Layer"