From 03033c0b24d91eaf45996829a60e10e03d7c7338 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 11 Jun 2019 01:07:11 +0100 Subject: [PATCH] Add GeoJSON note --- client_src/js/Overlay/VoronoiOverlay.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client_src/js/Overlay/VoronoiOverlay.mjs b/client_src/js/Overlay/VoronoiOverlay.mjs index 4a08748..9f3450c 100644 --- a/client_src/js/Overlay/VoronoiOverlay.mjs +++ b/client_src/js/Overlay/VoronoiOverlay.mjs @@ -85,6 +85,8 @@ class VoronoiOverlay { console.log(this.cells); + // TODO: Investigate GeoJSON. Maybe it could help us avoid the complexity of an SVGOverlay? It looks like we might be able to apply a custom colour to a GeoJSON polygon too: https://leafletjs.com/reference-1.5.0.html#geojson + let svg = new SvgWriter( "100%", "100%", bounding_box,