Hi,
I'm trying to make an indoor map, to use with this leaflet plugin:
https://www.cbaines.net/projects/osm/leaflet-indoor/examples/
(data.json is found here: https://github.com/cbaines/leaflet-indoor/tree/master/examples)
Input data is complete indoor maps in shapefiles with offices, hallways etc. each object with room numbers. I also have a large table of all employees with name, title, organisation, phone, and room number. These get joined by room number attribute with a Databasejoiner, and because some share rooms, turned into a list attribute. So far so good.
I've tried, with very limited success, to use Jsontemplater. As I've worked with geojson only once or twice I'm at a loss how to continue. I have gotten as far as writing a geojson, but not with the right structure. Pleeeeease push me in the right direction as to setup the Jsontemplater.
(renamed from .json to .txt because of security(?))
Please
Update: Below is an example of the result json (which couldn't be accessed... hrm, well). Also attached workspace and csv file with structure of DB tabl e
{
"vpl" : {
"type" : "FeatureCollection",
"features" : [
{
"type" : "Feature",
"geometry" : {
"type" : "Polygon",
"coordinates" : [
[
[ 11.9645998724, 57.7076967993 ],
[ 11.9646165315, 57.707666521 ],
[ 11.9646513025, 57.7076564113 ],
[ 11.9646910265, 57.7076625646 ],
[ 11.9646665721, 57.7077068513 ],
[ 11.9645998724, 57.7076967993 ]
]
]
},
"properties" : {
"relations" : "{ \\"Roomnumber: \\" : \\"4023\\", \\"Name:\\" : \\"Jane Doe\\", \\"Title:\\" : \\"Capo di tutti capi\\", \\"Email:\\" : \\"jane.doe@coroleone.org\\" }",
"id" : "4023",
"level" : "4"
}
}
]
}
}