Bugfix: Correct GeoJSON

This commit is contained in:
Starbeamrainbowlabs 2019-07-25 13:33:11 +01:00
parent ff412dcd5d
commit 0ff5ca462e

View file

@ -57,6 +57,10 @@ class LayerAI {
let map = this.render_map();
return L.geoJSON(map, {
style: (feature) => { return {
stroke: true,
color: feature.properties.colour,
weight: 1,
fillColor: feature.properties.colour,
fillOpacity: 0.4
} }
@ -108,11 +112,14 @@ class LayerAI {
geometry: {
type: "Polygon",
coordinates: [
[ // Outer shape
[lat, lng],
[lat + Config.step, lng],
[lat + Config.step, lng + Config.step],
[lat, lng + Config.step]
]
// If there were any holes in the shape, we'd put them here
]
},
properties: {
colour: colour_scale(max_predicted_rssi).toString()