mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-26 07:02:59 +00:00
[client] Try tweaking the heatmap, but it looks like we're going to have to swap it out
Looks like https://www.npmjs.com/package/leaflet-heatmap is a good place to look for a replacement
This commit is contained in:
parent
16d58918b9
commit
e86032c847
2 changed files with 5 additions and 3 deletions
|
@ -9,7 +9,8 @@ export default {
|
||||||
default_zoom: 12,
|
default_zoom: 12,
|
||||||
|
|
||||||
// The size, in metres, of the blobs on the heatmap.
|
// The size, in metres, of the blobs on the heatmap.
|
||||||
heatmap_blob_size: 500,
|
heatmap_blob_size: 5000,
|
||||||
|
|
||||||
heatmap_opacity: 0.75
|
heatmap_opacity: 0.75,
|
||||||
|
heatmap_alpha_range: 0.5
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,8 @@ class LayerHeatmap {
|
||||||
|
|
||||||
this.layer = new L.webGLHeatmap({
|
this.layer = new L.webGLHeatmap({
|
||||||
size: Config.heatmap_blob_size,
|
size: Config.heatmap_blob_size,
|
||||||
opacity: Config.heatmap_opacity
|
opacity: Config.heatmap_opacity,
|
||||||
|
alphaRange: Config.heatmap_alpha_range
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue