meshviewer/config.js

117 lines
4.6 KiB
JavaScript
Raw Normal View History

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-19 10:01:26 +00:00
'href': 'https://statistik.freifunk-troisdorf.de/render/d-solo/oUBqc1Wmk/nodes?orgId=1&var-hostname={NODE_NAME}&refresh=10s&panelId=2&theme=light&width=1000&height=500&tz=UTC%2B02%3A00',
'image': 'https://statistik.freifunk-troisdorf.de/render/d-solo/oUBqc1Wmk/nodes?orgId=1&var-hostname={NODE_NAME}&refresh=10s&panelId=2&theme=light&width=1000&height=500&tz=UTC%2B02%3A00',
2017-11-10 19:23:20 +00:00
'title': 'Knoten {NODE_ID} - weiteren Statistiken'
2018-04-19 10:06:43 +00:00
},
{
'name': 'Traffic',
'href': 'https://statistik.freifunk-troisdorf.de/render/d-solo/oUBqc1Wmk/nodes?orgId=1&var-hostname={NODE_NAME}&refresh=10s&panelId=3&theme=light&width=1000&height=500&tz=UTC%2B02%3A00',
'image': 'https://statistik.freifunk-troisdorf.de/render/d-solo/oUBqc1Wmk/nodes?orgId=1&var-hostname={NODE_NAME}&refresh=10s&panelId=3&theme=light&width=1000&height=500&tz=UTC%2B02%3A00',
'title': 'Knoten {NODE_ID} - weiteren Statistiken'
2017-11-10 19:23:20 +00:00
}
],
// Array of data provider are supported
'dataPath': [
2018-04-17 22:51:47 +00:00
'https://map.freifunk-troisdorf.de/data/tdf4/',
'https://map.freifunk-troisdorf.de/data/tdf5/',
'https://map.freifunk-troisdorf.de/data/tdf6/'
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">&copy; OpenMapTiles</a> <a href="http://www.openstreetmap.org/about/" target="_blank">&copy; 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">&copy; OpenMapTiles</a> <a href="http://www.openstreetmap.org/about/" target="_blank">&copy; 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': '&copy; Openstreetmap France | &copy; <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 &copy; 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 &copy; Esri &mdash; 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 &copy; 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
}
]
};
};