Unverified Commit dc1a6886 authored by User expired's avatar User expired
Browse files

added logging of mean isochrones to console

parent e80d0c3d
Upcoming version:
-----------------
- added logging of mean isochrones to console (Nikolaus Krismer)
- calling algorithms clear method explicitly to free memory earlier (Nikolaus Krismer)
- added support for multiple remote repositories (as fallbacks) (Nikolaus Krismer)
- improved request/response trace logging (using separate threads and introduced a config value) (Nikolaus Krismer)
......
......@@ -457,10 +457,14 @@ define(['jquery', 'leaflet', 'evispa-timo-jsclipper', 'util/loggingUtils', 'isoc
});
// add layers to map (skewness first, so on initial add the mean isochrone border is visible)
geoJsonBorderline = null;
geoJsonFrequency = null;
geoJsonSkewness = null;
layers = {};
if (intersectedIsochrones.skewness) {
geoJsonSkewness = toGeoJsonCollection(intersectedIsochrones.skewness);
layers.skewness = {
layer: L.geoJson(toGeoJsonCollection(intersectedIsochrones.skewness)),
layer: L.geoJson(),
name: LanguageUtils.get('layer.skewnessIsochrones')
};
layers.skewness.layer.eachLayer(function (layer) {
......@@ -472,8 +476,10 @@ define(['jquery', 'leaflet', 'evispa-timo-jsclipper', 'util/loggingUtils', 'isoc
bounds = layers.skewness.layer.getBounds();
}
if (intersectedIsochrones.frequency) {
geoJsonBorderline = intersectedIsochrones.frequency[Math.floor(intersectedIsochrones.frequency.length/2)];
geoJsonFrequency = toGeoJsonCollection(intersectedIsochrones.frequency);
layers.frequency = {
layer: L.geoJson(toGeoJsonCollection(intersectedIsochrones.frequency)),
layer: L.geoJson(geoJsonFrequency),
name: LanguageUtils.get('layer.meanIsochrones')
};
layers.frequency.layer.eachLayer(function (layer) {
......@@ -484,7 +490,7 @@ define(['jquery', 'leaflet', 'evispa-timo-jsclipper', 'util/loggingUtils', 'isoc
isoMap.addLayer(layers.frequency.layer, layers.frequency.name, true);
layers.frequencyBorderline = {
layer: L.geoJson(intersectedIsochrones.frequency[Math.floor(intersectedIsochrones.frequency.length/2)], {
layer: L.geoJson(geoJsonBorderline, {
style: GeoJsonStyle.getMeanBorderStyle()
}),
name: LanguageUtils.get('layer.meanIsochrone50')
......@@ -496,6 +502,10 @@ define(['jquery', 'leaflet', 'evispa-timo-jsclipper', 'util/loggingUtils', 'isoc
}
}
console.debug('Added skewness isochrone:', geoJsonSkewness);
console.debug('Added frequency isochrone:', geoJsonFrequency);
console.debug('Added mean isochrone (borderline):', geoJsonBorderline);
isoMap.getMap().fitBounds(bounds);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment