Browse Source

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

pull/35/head
Starbeamrainbowlabs 3 years ago
parent
commit
9194a1f372
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 1
      Changelog.md
  2. 7
      client_src/js/LayerHeatmap.mjs
  3. 1
      client_src/js/UI.mjs

1
Changelog.md

@ -3,6 +3,7 @@ @@ -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

7
client_src/js/LayerHeatmap.mjs

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

1
client_src/js/UI.mjs

@ -32,6 +32,7 @@ class UI { @@ -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…
Cancel
Save