diff options
| author | Stefan Hansson <steha708@student.liu.se> | 2021-01-09 11:27:26 +0100 |
|---|---|---|
| committer | Stefan Hansson <steha708@student.liu.se> | 2021-01-09 11:27:26 +0100 |
| commit | 978fed58df8322d4195ae112d33a4da193deccc2 (patch) | |
| tree | 0723e8b92e34371b130b1e1a579a872fad1bad6a /templates | |
| parent | ff702dfc656b289223e3700e66872c371e365a25 (diff) | |
| parent | a526d6b7ce8c2e506dfc0a6356e9e2ce470bc3e4 (diff) | |
| download | tdde25-978fed58df8322d4195ae112d33a4da193deccc2.tar.gz | |
Merge branch 'small-fixes' into 'master'
Small fixes
See merge request tdde25-2020/tdde25-2020-projekt-sg3-maps-05!18
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/index.js | 23 |
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() |
