Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Michael Ochmann
trakr.
Commits
40ed77bb
Commit
40ed77bb
authored
Jul 15, 2018
by
Michael Ochmann
Browse files
added high accuracy to geolocation
parent
15e48be6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/javascript/controllers/HeightMapViewController.js
View file @
40ed77bb
...
...
@@ -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),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment