Bugfix: Immediately update heatmap on blob size change. Fixes #27.

This commit is contained in:
Starbeamrainbowlabs 2019-04-23 15:54:10 +01:00
parent 38c4e0a585
commit 9194a1f372
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
3 changed files with 9 additions and 0 deletions

View file

@ -3,6 +3,7 @@
# v0.8 - 23rd April 2019
- Update heatmap colours to match the [official DEFRA standards](https://uk-air.defra.gov.uk/air-pollution/daqi?view=more-info&pollutant=pm25#pollutant)
- Bugfix: Allow different reading types to be selected once more in the bottom-left
- Bugfix: Immediately update heatmap when changing the blob radius
## v0.7.1 - 16th April 2019
- [API] `list-reading-types` no longer returns an error if a device hasn't submitted any readings yet

View file

@ -272,6 +272,13 @@ class LayerHeatmap {
reading_type
);
}
async refresh_display() {
await this.update_data(
this.datetime,
this.reading_type
);
}
}
export default LayerHeatmap;

View file

@ -32,6 +32,7 @@ class UI {
],
callback: ((event) => {
this.map_manager.heatmap.overlay_config.radius = parseFloat(event.target.value);
this.map_manager.heatmap.refresh_display();
}).bind(this)
},
{