X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=blobdiff_plain;f=js%2Fui.js;h=9edf4dd67c15f4fdd61dae9791cd3bddf8166ddc;hp=0c8af9aeebe0f22c290ad24ae4dc98511c597041;hb=da8fd4b697c86d4c61acbe4c95764ab7d27d4198;hpb=0713fd6a18112db2b55d7e2e3c4b58658fb4c030 diff --git a/js/ui.js b/js/ui.js index 0c8af9a..9edf4dd 100644 --- a/js/ui.js +++ b/js/ui.js @@ -18,6 +18,10 @@ var gBackendURL = "https://backend.lantea.kairo.at/"; var gAuthClientID = "lantea"; window.onload = function() { + // Assign click functions to buttons. + document.getElementById("zoomInButton").onclick = gMap.zoomIn; + document.getElementById("zoomOutButton").onclick = gMap.zoomOut; + gAction = document.getElementById("action"); gActionLabel = document.getElementById("actionlabel"); @@ -575,6 +579,13 @@ function reportUploadStatus(aSuccess, aResponse) { } } +function setMapStyle() { + var mapSel = document.getElementById("mapSelector"); + if (mapSel.selectedIndex >= 0 && gMap.activeMap != mapSel.value) { + gMap.setActiveMap(mapSel.value); + } +} + var gPrefs = { objStore: "prefs",