diff options
| author | Code WvS <code-wvs@quantentunnel.de> | 2015-02-28 14:51:53 +0100 |
|---|---|---|
| committer | Code WvS <code-wvs@quantentunnel.de> | 2015-02-28 14:51:53 +0100 |
| commit | 3ca407d3300dc82e0b81f0a71e215799f7459141 (patch) | |
| tree | f9f809f07750ed5a819652aac0b6b9081f2cfa56 /threads.js | |
| parent | e4e487c7a3b5a792e63e20be6a3b902a292e8d59 (diff) | |
| download | snap-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.js | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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) { |
