I’m trying to use the html5 geolocation api with Meteor.
I’m using:
navigator.geolocation.getCurrentPosition(handle_geolocation_query); in my js but it doesn’t seem to work – I think it may be related to the timer ( http://docs.meteor.com/#timers ) restrictions Meteor has. Any thoughts?
I’m trying to use the html5 geolocation api with Meteor. I’m using: navigator.geolocation.getCurrentPosition(handle_geolocation_query); in
Share
Thanks @lashleigh it was a loading problem
Here is the code that worked for me (I’m using Modernizr.js to detect geo-location)