This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
meshviewer/config.js

92 lines
2.5 KiB
JavaScript

module.exports = function () {
return {
'nodeInfos': [
{
'name': 'Clientstatistik',
'href': '/grafana/d/KoKOqJc7k/node-public?orgId=1&refresh=30s&from=now-24h&to=now&var-node_id={NODE_ID}',
'image': '/render/clients/{NODE_ID}',
'title': 'Entwicklung der Anzahl der Clients'
},
{
'name': 'Traffic',
'href': '/grafana/d/KoKOqJc7k/node-public?orgId=1&refresh=30s&from=now-24h&to=now&var-node_id={NODE_ID}',
'image': '/render/traffic/{NODE_ID}',
'title': 'Traffic'
}
],
// Array of data provider are supported
'dataPath': [
'/data/'
],
'siteName': 'Freifunk Leipzig',
'mapLayers': [
{
'name': 'OpenStreetMap.de',
'url': 'https://d.tile.openstreetmap.de/{z}/{x}/{y}.png',
'config': {
'maxZoom': 19,
'attribution': '&copy; Openstreetmap | &copy; <a href="http://www.openstreetmap.de">OpenStreetMap</a>'
}
},
{
'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': 'Stamen Toner',
'url': 'http://stamen-tiles-c.a.ssl.fastly.net/toner/{z}/{x}/{y}.png',
'config': {
'maxZoom': 20,
'attribution': 'https://stamen.com/open-source/'
}
},
{
'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': [
// Northwest
[
51.4168,
12.1983
],
// Southeast
[
51.2516,
12.4791
]
],
'domainNames': [
{
'domain': 'l',
'name': 'Leipzig (Gluon)'
},
{
'domain': 'meshkit',
'name': 'Leipzig (meshkit)'
}
],
'linkList': [
{
'title': 'Impressum',
'href': 'https://freifunk.net/impressum/'
},
{
'title': 'Datenschutz',
'href': 'https://freifunk.net/datenschutz/'
}
]
};
};