summaryrefslogtreecommitdiffstats
path: root/templates/index.js
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2021-01-06 18:51:34 +0100
committerGustav Sörnäs <gusso230@student.liu.se>2021-01-06 18:51:34 +0100
commit1afff10fa0418647f35fdfc1ec95bff92e37ec11 (patch)
treef05356495352369acb8879ac0ca1eeed690e3a34 /templates/index.js
parentff702dfc656b289223e3700e66872c371e365a25 (diff)
downloadtdde25-1afff10fa0418647f35fdfc1ec95bff92e37ec11.tar.gz
remove demo-code
Diffstat (limited to 'templates/index.js')
-rw-r--r--templates/index.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/templates/index.js b/templates/index.js
index 1422fe6..2fbab55 100644
--- a/templates/index.js
+++ b/templates/index.js
@@ -47,26 +47,3 @@ function handleMapClick ({latlng}){
}
map.on('click', handleMapClick)
-
-
-function showMarker(){
- var marker = L.marker([58.3984, 15.5733]).addTo(map)
-}
-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()
-
-async function showUnconnectedMarkers() {
- const res = await fetch('/show-unconnected-nodes').then(res => res.json());
- for (let key in res) {
- var marker = L.marker(res[key]).addTo(map)
- }
-}
-//showUnconnectedMarkers()