@ -65,6 +65,43 @@ There are also several special icons...
- **unknown** : pseudo NATO style yellow square.
- **earthquake** : black circle - diameter proportional to `msg.mag`.
### Buildings
The OSM Buildings layer is available in the layers menu. You can replace this with a building of your own by
sending a msg.payload containing a name and a building property. The building property should be
a GeoJSON Feature Collection as per the OSMBuildings spec.
{ name:"My Block", building: {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"wallColor": "rgb(0,0,255)",
"roofColor": "rgb(128,128,255)",
"height": 50,
"minHeight": 0,
"piso": 0
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-1.398163, 51.026591],
[-1.397781, 51.026597],
[-1.397751, 51.025430],
[-1.398148, 51.025427],
[-1.398163, 51.026591]
]
]
}
}
] }
}
**Note**: the object you supply will replace the whole buildings layer. To delete the building send a msg with a name and the building property set to "" (blank string).
### Areas and Lines
If the payload contains an **area** property - that is an array of co-ordinates, e.g.