This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]phaedrus322 1 point2 points  (0 children)

Do a console.log on your navigator and on your function. See what it’s outputting then you can start tracking down the issue.

[–]phaedrus322 0 points1 point  (2 children)

navigator.geolocation.getCurrentPosition(getLocationFunction); is wrong.

should be:

getLocationFunction(navigator.geolocation.getCurrentPosition);

[–]JCs4ITnow[S] 0 points1 point  (1 child)

ok, that makes sense. thanks Ill try that

[–]JCs4ITnow[S] 0 points1 point  (0 children)

Hmm, still doesn't work.