2017-05-16 16:00:32 +02:00
|
|
|
/* exported config */
|
|
|
|
|
2017-05-08 19:13:29 +02:00
|
|
|
var config = {
|
|
|
|
title: 'FreifunkManager - Breminale',
|
2017-05-15 21:59:48 +02:00
|
|
|
backend: 'ws://'+location.host+'/websocket',
|
|
|
|
map: {
|
2017-05-16 02:27:30 +02:00
|
|
|
view: {bound: [53.07093, 8.79464], zoom: 17},
|
|
|
|
maxZoom: 20,
|
2017-05-16 16:00:32 +02:00
|
|
|
tileLayer: 'https://tiles.bremen.freifunk.net/{z}/{x}/{y}.png',
|
2017-05-16 02:27:30 +02:00
|
|
|
/* heatmap settings
|
|
|
|
size: in meters (default: 30km)
|
|
|
|
opacity: in percent/100 (default: 1)
|
|
|
|
gradientTexture: url-to-texture-image (default: false)
|
|
|
|
alphaRange: change transparency in heatmap (default: 1)
|
|
|
|
autoresize: resize heatmap when map size changes (default: false)
|
|
|
|
*/
|
|
|
|
heatmap: {
|
2017-05-16 16:00:32 +02:00
|
|
|
wifi24: {size: 230, opacity: 0.5, alphaRange: 1},
|
|
|
|
wifi5: {size: 230, opacity: 0.5, alphaRange: 1}
|
2017-05-16 02:27:30 +02:00
|
|
|
},
|
|
|
|
icon:{
|
2017-05-16 16:00:32 +02:00
|
|
|
warn:{wifi24:20,wifi5:20},
|
|
|
|
crit:{wifi24:30,wifi5:30}
|
2017-05-16 02:27:30 +02:00
|
|
|
},
|
|
|
|
geojson: {
|
2017-05-16 16:00:32 +02:00
|
|
|
url: 'http://events.ffhb.de/data/ground.geojson',
|
2017-05-16 02:27:30 +02:00
|
|
|
pointToLayer: function (feature, latlng){
|
|
|
|
feature.properties.radius = 10;
|
|
|
|
return L.circleMarker(latlng, feature.properties);
|
|
|
|
},
|
|
|
|
onEachFeature: function(feature, layer) {
|
|
|
|
if(feature.properties.name.length >0){
|
|
|
|
layer.bindTooltip(feature.properties.name);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
style: function(feature){
|
|
|
|
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'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
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
|
|
|
};
|