diff --git a/lib/www/client/source/src/views/MapLayersMixin.vue b/lib/www/client/source/src/views/MapLayersMixin.vue index 1eeb9a1..c55e76b 100644 --- a/lib/www/client/source/src/views/MapLayersMixin.vue +++ b/lib/www/client/source/src/views/MapLayersMixin.vue @@ -452,6 +452,7 @@ export default { let weights, offset = 0, scaler = 1; let colorDomain = null; + let aggregation = "MEAN"; switch (this.heatmapValue) { case "total_error": @@ -534,7 +535,23 @@ export default { weights = values[19]; scaler = 0.1; break; - + case "no_fire": + weights = values[20]; + transform = v => v >> 4; + aggregation = "SUM"; + colorDomain = [ 0.1, 1.5 ]; + break; + case "autofire": + weights = values[20]; + transform = v => v & 0xf; + aggregation = "SUM"; + colorDomain = [ 0.5, 1.5 ]; + break; + case "misfire": + weights = values[20]; + aggregation = "SUM"; + colorDomain = [ 0.5, 1.5 ]; + break; } @@ -575,12 +592,7 @@ export default { getWeight: (d, {index, data}) => Math.abs(data.weights[index] * scaler + offset), colorDomain, radiusPixels: 25, - aggregation: 'MEAN', - pickable: false, - ...options - }); - }, - + aggregation, pickable: false, ...options });