mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-17 05:43:01 +00:00
Bugfix: Immediately update heatmap on blob size change. Fixes #27.
This commit is contained in:
parent
38c4e0a585
commit
9194a1f372
3 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -272,6 +272,13 @@ class LayerHeatmap {
|
|||
reading_type
|
||||
);
|
||||
}
|
||||
|
||||
async refresh_display() {
|
||||
await this.update_data(
|
||||
this.datetime,
|
||||
this.reading_type
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default LayerHeatmap;
|
||||
|
|
|
@ -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)
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue