diff --git a/client_src/js/LayerAI.mjs b/client_src/js/LayerAI.mjs index b6164ff..486f3e7 100644 --- a/client_src/js/LayerAI.mjs +++ b/client_src/js/LayerAI.mjs @@ -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,10 +112,13 @@ class LayerAI { geometry: { type: "Polygon", coordinates: [ - [lat, lng], - [lat + Config.step, lng], - [lat + Config.step, lng + Config.step], - [lat, lng + Config.step] + [ // 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: {