Commit 40ed77bb authored by Michael Ochmann's avatar Michael Ochmann
Browse files

added high accuracy to geolocation

parent 15e48be6
......@@ -36,11 +36,16 @@ class HeightMapViewController extends UIViewController {
capture() {
navigator.geolocation.getCurrentPosition(position => {
if (position.coords.accuracy)
this.addPoint(new GeoPoint(
position.coords.latitude,
position.coords.longitude,
position.coords.altitude
));
), error => console.log(error), {
timeout : 0,
enableHighAccuracy : true,
maximumAge : Infinity
});
});
/* this.addPoint(new GeoPoint(
Std.Random(136, 150),
......
Supports Markdown
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