2017-11-10 19:23:20 +00:00
|
|
|
module.exports = function () {
|
|
|
|
return {
|
|
|
|
// Variables are NODE_ID and NODE_NAME (only a-z0-9\- other chars are replaced with _)
|
|
|
|
'nodeInfos': [
|
|
|
|
{
|
|
|
|
'name': 'Clientstatistik',
|
2018-04-09 20:21:31 +00:00
|
|
|
'href': 'https://statistik.freifunk-troisdorf.de/dashboard-solo/db/nodes?panelId=1&var-Hostname={NODE_NAME}&theme=light',
|
|
|
|
'image': 'https://statistik.freifunk-troisdorf.de/dashboard-solo/db/nodes?panelId=1&var-Hostname={NODE_NAME}&theme=light',
|
2017-11-10 19:23:20 +00:00
|
|
|
'title': 'Knoten {NODE_ID} - weiteren Statistiken'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
// Array of data provider are supported
|
|
|
|
'dataPath': [
|
2018-04-16 20:49:55 +00:00
|
|
|
'https://data.freifunk-troisdorf.de/'
|
2017-11-10 19:23:20 +00:00
|
|
|
],
|
2018-04-09 20:21:31 +00:00
|
|
|
'siteName': 'Freifunk Troisdorf',
|
2017-11-10 19:23:20 +00:00
|
|
|
'mapLayers': [
|
|
|
|
{
|
|
|
|
'name': 'Freifunk Regensburg',
|
|
|
|
// Please ask Freifunk Regensburg before using its tile server c- example with retina tiles
|
|
|
|
'url': 'https://{s}.tiles.ffrgb.net/{z}/{x}/{y}{retina}.png',
|
|
|
|
'config': {
|
|
|
|
'maxZoom': 20,
|
|
|
|
'subdomains': '1234',
|
|
|
|
'attribution': '<a href="http://www.openmaptiles.org/" target="_blank">© OpenMapTiles</a> <a href="http://www.openstreetmap.org/about/" target="_blank">© OpenStreetMap contributors</a>',
|
|
|
|
'start': 6
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'Freifunk Regensburg Night',
|
|
|
|
// Please ask Freifunk Regensburg before using its tile server - example with retina and dark tiles
|
|
|
|
'url': 'https://{s}.tiles.ffrgb.net/n/{z}/{x}/{y}{retina}.png',
|
|
|
|
'config': {
|
|
|
|
'maxZoom': 20,
|
|
|
|
'subdomains': '1234',
|
|
|
|
'attribution': ' <a href="http://www.openmaptiles.org/" target="_blank">© OpenMapTiles</a> <a href="http://www.openstreetmap.org/about/" target="_blank">© OpenStreetMap contributors</a>',
|
|
|
|
'mode': 'night',
|
2018-04-10 20:16:28 +00:00
|
|
|
'start': 23,
|
2017-11-10 19:23:20 +00:00
|
|
|
'end': 7
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'OpenStreetMap.HOT',
|
|
|
|
'url': 'https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png',
|
|
|
|
'config': {
|
|
|
|
'maxZoom': 19,
|
|
|
|
'attribution': '© Openstreetmap France | © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'HERE',
|
|
|
|
// Please use your own API key - Free plan is on right side after the pay plans
|
|
|
|
'url': 'https://{s}.base.maps.api.here.com/maptile/2.1/maptile/newest/normal.day/{z}/{x}/{y}/256/png8?app_id=YOUR_KEY&app_code=YOUR_CODE&lg=deu',
|
|
|
|
'config': {
|
|
|
|
'attribution': 'Map © 1987-2014 <a href="http://developer.here.com">HERE</a>',
|
|
|
|
'subdomains': '1234',
|
|
|
|
'maxZoom': 20
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'Esri.WorldImagery',
|
|
|
|
'url': '//server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',
|
|
|
|
'config': {
|
|
|
|
'maxZoom': 20,
|
|
|
|
'attribution': 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'HERE.hybridDay',
|
|
|
|
// Please use your own API key - Free plan is on right side after the pay plans
|
|
|
|
'url': 'https://{s}.aerial.maps.api.here.com/maptile/2.1/maptile/newest/{variant}/{z}/{x}/{y}/256/png8?app_id=YOUR_KEY&app_code=YOUR_CODE&lg=deu',
|
|
|
|
'config': {
|
|
|
|
'attribution': 'Map © 1987-2014 <a href="http://developer.here.com">HERE</a>',
|
|
|
|
'subdomains': '1234',
|
|
|
|
'variant': 'hybrid.day',
|
|
|
|
'maxZoom': 20
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
// Set a visible frame
|
|
|
|
'fixedCenter': [
|
|
|
|
// Northwest
|
|
|
|
[
|
2018-04-10 20:16:28 +00:00
|
|
|
50.8428,
|
|
|
|
7.0367
|
2017-11-10 19:23:20 +00:00
|
|
|
],
|
|
|
|
// Southeast
|
|
|
|
[
|
2018-04-10 20:16:28 +00:00
|
|
|
50.7768,
|
|
|
|
7.1919
|
2017-11-10 19:23:20 +00:00
|
|
|
]
|
|
|
|
],
|
|
|
|
'siteNames': [
|
|
|
|
{
|
2018-04-09 20:21:31 +00:00
|
|
|
'site': 'tdf',
|
|
|
|
'name': 'Troisdorf All'
|
2017-11-10 19:23:20 +00:00
|
|
|
},
|
|
|
|
{
|
2018-04-09 20:21:31 +00:00
|
|
|
'site': 'inn',
|
|
|
|
'name': 'Innenstadt'
|
2018-04-10 14:51:02 +00:00
|
|
|
},
|
2018-04-09 20:21:31 +00:00
|
|
|
{
|
|
|
|
'site': 'flu',
|
|
|
|
'name': 'Soziale Einrichtungen'
|
2017-11-10 19:23:20 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|