From 346cc00e17443b8f72f5f683ceb5f6f63837bdb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Fri, 20 Nov 2020 12:35:26 +0100 Subject: remove show-area --- templates/index.js | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'templates/index.js') diff --git a/templates/index.js b/templates/index.js index b7b3b58..dd39c12 100644 --- a/templates/index.js +++ b/templates/index.js @@ -51,13 +51,3 @@ function showMarker(){ } showMarker() - -async function showMarkers() { - res = await fetch('/show-area'); - res = await res.json(); - for (let key in res) { - var marker = L.marker(res[key]).addTo(map) - } -} - -showMarkers() -- cgit v1.2.1