Commit f6fdac2c authored by Michael Ochmann's avatar Michael Ochmann
Browse files

.

parent a4b5ea54
......@@ -33,20 +33,21 @@ class HeightMapViewController extends UIViewController {
this.currentAcc = 0;
this.addSubview(new MapController("#osm", this.model));
/* constantly checking the position of the user for changes */
navigator.geolocation.watchPosition(position => {
this.currentAcc = position.coords.accuracy;
if (!this.isCapturing || position.coords.accuracy > 100)
return;
this.addPoint(new GeoPoint(
position.coords.latitude,
position.coords.longitude,
position.coords.altitude
));
}, error => console.log(error), {
timeout : 0,
enableHighAccuracy : true,
maximumAge : Infinity
});
this.currentAcc = position.coords.accuracy;
if (!this.isCapturing || position.coords.accuracy > 100)
return;
this.addPoint(new GeoPoint(
position.coords.latitude,
position.coords.longitude,
position.coords.altitude
));
}, error => console.log(error), {
timeout : 0,
enableHighAccuracy : true,
maximumAge : Infinity
});
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment