{ "dataPath": "/data/", "siteName": "{{freifunk.name}}", "mapSigmaScale": {{ mapconfig.globalMap.map_scale }}, "showContact": {{ mapconfig.globalMap.map_show_contact | lower}}, "maxAge": {{ mapconfig.globalMap.map_max_age }}, {% if "max_goto_zoom" in mapconfig.globalMap %} "maxGotoZoom": {{ mapconfig.globalMap.max_goto_zoom }}, {% endif %} "mapLayers": [ {% for layer in mapconfig.layers %} { "name": "{{layer.name}}", "url": "{{layer.url}}", "config": { {% for k,v in layer.config|dictsort %} "{{k}}": {% if v is number %}{{v}}{% else %}"{{v}}"{% endif %}{% if not loop.last %},{% endif %} {% endfor %} } }{% if not loop.last %},{% endif %} {% endfor %} ], "siteNames": [ {% for domaene in domaenen|dictsort %} { "site": "{{freifunk.kurzname}}d{{domaene[0]}}", "name": "Domäne {{domaene[0]}} - {{domaene[1].name}}" }{% if not loop.last %},{% endif %} {% endfor %} ], {% if mapconfig.globalInfos is defined %} "globalInfos": [ {% for globalInfo in mapconfig.globalInfos %} { "name": "{{ globalInfo.name }}", "iframe": "{{ globalInfo.iframe }}"{% if globalInfo.caption is defined %}, "caption": "{{ globalInfo.caption }}"{% endif %} }{% if not loop.last %},{% endif %} {% endfor %} ], {% endif %} {% if mapconfig.nodeInfos is defined %} "nodeInfos": [ {% for nodeInfo in mapconfig.nodeInfos %} { "name": "{{ nodeInfo.name }}", "iframe": "{{ nodeInfo.iframe }}"{% if nodeInfo.caption is defined %}, "caption": "{{ nodeInfo.caption }}"{% endif %} }{% if not loop.last %},{% endif %} {% endfor %} ], {% endif %} "hwImg": [ { "thumbnail": "/hwpics/{MODELHASH}.svg", "caption": "Knoten {MODELHASH}" } ] }