From fd511662b74b9e0b345ee45bf3591db97ef5838b Mon Sep 17 00:00:00 2001 From: jshjelse <jshjelse@stud.ntnu.no> Date: Mon, 2 Oct 2023 15:11:36 +0200 Subject: [PATCH] OK --- javascript/buffer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/javascript/buffer.js b/javascript/buffer.js index f0fb72b..f8bc8e2 100644 --- a/javascript/buffer.js +++ b/javascript/buffer.js @@ -12,6 +12,10 @@ function makeBuffer() { try { var buffer = turf.buffer(layer, distance, {units: "meters"}); + /* + Funker ikke for 'Samferdsel'-laget med buffer-distanse mellom 68 og 101 meter. + */ + if (document.getElementById("bufferCheck").checked) { var dissolved = turf.dissolve(buffer); var newLayer = L.geoJSON(dissolved); -- GitLab