Commit 321adf06 authored by Michael Ochmann's avatar Michael Ochmann
Browse files

fixed geo position capturing

parent 6b5a4ebb
......@@ -22,7 +22,11 @@ class App {
capture() {
navigator.geolocation.getCurrentPosition(position => {
this.heightmap.addPoint(new GeoPoint(position.latitude, position.longitude, position.altitude));
this.heightmap.addPoint(new GeoPoint(
position.coords.latitude,
position.coords.longitude,
position.coords.altitude
));
});
}
}
......
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