From 3ca407d3300dc82e0b81f0a71e215799f7459141 Mon Sep 17 00:00:00 2001 From: Code WvS Date: Sat, 28 Feb 2015 14:51:53 +0100 Subject: add motion category; use X/Y positions as lon/lat --- threads.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'threads.js') 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) { -- cgit v1.3.1