summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorCode WvS <code-wvs@quantentunnel.de>2015-02-28 14:51:53 +0100
committerCode WvS <code-wvs@quantentunnel.de>2015-02-28 14:51:53 +0100
commit3ca407d3300dc82e0b81f0a71e215799f7459141 (patch)
treef9f809f07750ed5a819652aac0b6b9081f2cfa56 /threads.js
parente4e487c7a3b5a792e63e20be6a3b902a292e8d59 (diff)
downloadsnap-yow-3ca407d3300dc82e0b81f0a71e215799f7459141.tar.gz
snap-yow-3ca407d3300dc82e0b81f0a71e215799f7459141.zip
add motion category; use X/Y positions as lon/lat
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/threads.js b/threads.js
index dfd19be..8d60447 100644
--- a/threads.js
+++ b/threads.js
@@ -2626,12 +2626,16 @@ Process.prototype.reportTimer = function () {
return 0;
};
-Process.prototype.reportUserLocation = function () {
- return new List([window.geoposition.lat, window.geoposition.lng]);
+Process.prototype.userLon = function () {
+ return window.geoposition.lng;
};
-Process.prototype.focusMap = function (pos, zoom) {
- window.map.setView(pos.contents, zoom);
+Process.prototype.userLat = function () {
+ return window.geoposition.lat;
+};
+
+Process.prototype.focusMap = function (lon, lat, zoom) {
+ window.map.setView([lat, lon], zoom);
};
Process.prototype.addMarker = function (pos) {