projects
/
lantea.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add arcgis world imagery
[lantea.git]
/
js
/
ui.js
diff --git
a/js/ui.js
b/js/ui.js
index 0c8af9aeebe0f22c290ad24ae4dc98511c597041..9edf4dd67c15f4fdd61dae9791cd3bddf8166ddc 100644
(file)
--- 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() {
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");
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",
var gPrefs = {
objStore: "prefs",