2017-05-16 19:18:35 +02:00
|
|
|
/* eslint no-magic-numbers: "off"*/
|
|
|
|
/* eslint sort-keys: "off"*/
|
|
|
|
|
2018-06-30 16:20:54 +02:00
|
|
|
export default {
|
2017-05-16 19:18:35 +02:00
|
|
|
'title': 'FreifunkManager - Breminale',
|
2019-06-23 01:09:23 +02:00
|
|
|
'backend': `ws${location.protocol == 'https:' ? 's' : ''}://${location.host}${location.pathname}ws`,
|
2017-05-30 02:16:46 +02:00
|
|
|
'node': {
|
2018-07-15 22:47:05 +02:00
|
|
|
'channel24': 6,
|
|
|
|
'channel5': 44,
|
2017-05-30 02:16:46 +02:00
|
|
|
// Minuten till is shown as offline
|
|
|
|
'offline': 5
|
|
|
|
},
|
2017-05-16 19:18:35 +02:00
|
|
|
'map': {
|
|
|
|
'view': {
|
2017-07-01 02:10:56 +02:00
|
|
|
'bound': [
|
|
|
|
53.07103,
|
|
|
|
8.81624
|
|
|
|
],
|
2017-05-16 19:18:35 +02:00
|
|
|
'zoom': 17
|
|
|
|
},
|
|
|
|
'maxZoom': 20,
|
|
|
|
'tileLayer': 'https://tiles.bremen.freifunk.net/{z}/{x}/{y}.png',
|
|
|
|
'heatmap': {
|
|
|
|
'wifi24': {
|
2018-06-30 16:20:54 +02:00
|
|
|
'size': 10,
|
|
|
|
'units': 'm',
|
2017-05-16 19:18:35 +02:00
|
|
|
'opacity': 0.5,
|
|
|
|
'alphaRange': 1
|
|
|
|
},
|
|
|
|
'wifi5': {
|
2018-06-30 16:20:54 +02:00
|
|
|
'size': 10,
|
|
|
|
'units': 'm',
|
2017-05-16 19:18:35 +02:00
|
|
|
'opacity': 0.5,
|
|
|
|
'alphaRange': 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'icon': {
|
|
|
|
'warn': {
|
|
|
|
'wifi24': 20,
|
|
|
|
'wifi5': 20
|
|
|
|
},
|
|
|
|
'crit': {
|
|
|
|
'wifi24': 30,
|
|
|
|
'wifi5': 30
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'geojson': {
|
2018-06-30 16:20:54 +02:00
|
|
|
'url': 'https://raw.githubusercontent.com/FreifunkBremen/internal-maps/master/breminale.geojson',
|
2017-05-16 19:18:35 +02:00
|
|
|
'pointToLayer': function pointToLayer (feature, latlng) {
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
feature.properties.radius = 10;
|
|
|
|
|
|
|
|
return L.circleMarker(latlng, feature.properties);
|
|
|
|
},
|
|
|
|
'onEachFeature': function onEachFeature (feature, layer) {
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
if (feature.properties.name.length > 0) {
|
|
|
|
layer.bindTooltip(feature.properties.name);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'style': function style (feature) {
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
if (feature.geometry.type === 'LineString' || feature.geometry.type === 'Polygon') {
|
|
|
|
return {
|
|
|
|
'color': feature.properties.stroke,
|
|
|
|
'opacity': feature.properties['stroke-opacity'],
|
|
|
|
'fillColor': feature.properties.fill,
|
|
|
|
'fillOpacity': feature.properties['fill-opacity'],
|
|
|
|
'stroke': true,
|
|
|
|
'weight': feature.properties['stroke-width'],
|
|
|
|
'lineCap': 'round',
|
|
|
|
'lineJoin': 'round'
|
|
|
|
};
|
|
|
|
}
|
2017-05-16 02:27:30 +02:00
|
|
|
|
2017-05-16 19:18:35 +02:00
|
|
|
return {
|
|
|
|
'color': feature.properties['marker-color'],
|
|
|
|
'fillColor': feature.properties['marker-color'],
|
|
|
|
'fillOpacity': 0.2,
|
|
|
|
'weight': 2,
|
|
|
|
'stroke': true
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-05-08 19:13:29 +02:00
|
|
|
};
|