meshviewer/config.js

113 lines
4.3 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-06-25 19:59:11 +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',
'title': 'Knoten {NODE_ID} - weiteren Statistiken'
2018-04-19 10:06:43 +00:00
},
{
2018-06-25 19:59:11 +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
}
],
2018-06-10 09:27:38 +00:00
// Array of data provider are supported
2018-06-25 20:04:50 +00:00
'dataPath': [
'https://map.freifunk-troisdorf.de/data/tdf4/',
'https://map.freifunk-troisdorf.de/data/tdf5/',
'https://map.freifunk-troisdorf.de/data/tdf6/'
],
'siteName': 'Freifunk Troisdorf',
2018-06-10 09:27:38 +00:00
'maxAge': 7,
2017-11-10 19:23:20 +00:00
'mapLayers': [
2018-06-10 09:27:38 +00:00
{
2019-01-31 18:36:27 +00:00
'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',
2018-06-10 09:27:38 +00:00
'config': {
'maxZoom': 20,
2019-01-31 18:36:27 +00:00
'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>'
2017-11-10 19:23:20 +00:00
}
},
2019-02-03 11:29:31 +00:00
{
'name': 'Freifunk Troisdorf',
'url': 'https://tiles.freifunk-rhein-sieg.net/styles/osm-bright/{z}/{x}/{y}.png',
'config': {
'maxZoom': 20,
'type': 'osm',
'attribution': '<a href="https://github.com/mapbox/mapbox-studio-osm-bright.tm2">Design</a> © <a href="https://www.mapbox.com/">Mapbox</a>, <a href="http://creativecommons.org/licenses/by/3.0/">CC-BY 3.0</a> — Daten © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}
},
2017-11-10 19:23:20 +00:00
{
'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>',
2018-06-10 09:27:38 +00:00
'mode': 'night'
2017-11-10 19:23:20 +00:00
}
},
{
'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': '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'
}
}
],
// Set a visible frame
'fixedCenter': [
2018-06-10 09:27:38 +00:00
// Northwest
2017-11-10 19:23:20 +00:00
[
2018-06-25 20:04:50 +00:00
50.8428,
7.0367
2017-11-10 19:23:20 +00:00
],
// Southeast
[
2018-06-25 20:04:50 +00:00
50.776,
7.1919
2017-11-10 19:23:20 +00:00
]
],
'siteNames': [
{
2018-06-25 20:04:50 +00:00
'site': 'tdf',
'name': 'Troisdorf'
},
{
'site': 'inn',
'name': 'Innenstadt'
},
{
'site': 'flu',
'name': 'Soziale Netze'
2018-06-10 09:27:38 +00:00
}
],
'linkList': [
2017-11-10 19:23:20 +00:00
{
2018-06-10 09:27:38 +00:00
'title': 'Impressum',
2018-06-25 20:07:47 +00:00
'href': 'http://freifunk-troisdorf.de/kontakt/impressum/'
2018-04-10 14:51:02 +00:00
},
2018-04-09 20:21:31 +00:00
{
2018-06-10 09:27:38 +00:00
'title': 'Datenschutz',
2018-06-25 20:07:47 +00:00
'href': 'http://freifunk-troisdorf.de/datenschutz/'
2018-05-23 22:51:41 +00:00
}
2017-11-10 19:23:20 +00:00
]
};
};