diff --git a/drawio/indoor-navigation.drawio b/drawio/indoor-navigation.drawio index c799643f..4fd1ac65 100644 --- a/drawio/indoor-navigation.drawio +++ b/drawio/indoor-navigation.drawio @@ -1,6 +1,6 @@ - + @@ -239,7 +239,7 @@ - + diff --git a/index.html b/index.html index 4e50f3dd..b95d4709 100644 --- a/index.html +++ b/index.html @@ -10,8 +10,7 @@ - + @@ -149,7 +148,7 @@

Gyroscope

- + diff --git a/js/map.js b/js/map.js index f4018e67..35cfcfd8 100644 --- a/js/map.js +++ b/js/map.js @@ -1,5 +1,7 @@ 'use strict' +import 'https://unpkg.com/leaflet@1.9.4/dist/leaflet.js' + // Graph Variables let nodeA = null let nodeB = null @@ -137,7 +139,7 @@ function clickOnEdge (e) { } } -function createJSON () { +window.createJSON = function () { const json = JSON.stringify(nodes) const link = document.getElementById('downloadlink') link.href = makeTextFile(json) @@ -261,12 +263,12 @@ const graphUI = document.getElementsByClassName('graphUI') // Click Event der Map deaktivieren, damit keine Marker gesetzt werden wenn man auf den Button drückt download.addEventListener('click', function (e) { e.stopPropagation() }) -function closeMenu () { +window.closeMenu = function () { const bsOffcanvas = bootstrap.Offcanvas.getInstance('#offcanvasMenu') bsOffcanvas.hide() } -function activateGraphUI () { +window.activateGraphUI = function () { toggleGraphUI.checked && loadJSON() // Graphdaten laden if (!toggleGraphUI.checked) { nodes.splice(0, nodes.length)