Questions tagged [w3c-geolocation]

The W3C Geolocation API provides scripted access to geographical location information associated with a hosting device.

See also:

130 questions
2
votes
0 answers

Does Chrome violates the HTML5 standard for Geolocation API when position is unavailable?

While I am developing a web app, I am using HTML5 Geolocation API. I have done the following steps: I turned off my WiFi connection on my desktop computer. I triggered a position request using : var params = {enableHighAccuracy: true,…
Wael Showair
  • 3,092
  • 2
  • 22
  • 29
2
votes
3 answers

Geolocation problems when switch GPS on and off

Thanks in advance first.I build a website with an option to lead you to a specific place when you click button "Navigate". Everything works fine on desktop and everything works fine on mobile when GPS of the phone is enabled. I use the google maps…
2
votes
0 answers

W3C geolocation backend implementations and extensions

Could someone provide a link to a description of backend implementation(s) of the Geolocation APIs available in modern browsers? Specifically, I need to make sure that a bunch of WiFi spots are registered (and preferably promptly updated on their…
Stan
  • 8,683
  • 9
  • 58
  • 102
1
vote
2 answers

Why is this HTML5 geolocation-dependent javascript code erring?

I have some javascript code depending on geolocation. http://jsfiddle.net/8D6vz/ var myLat = 0.0; var myLng = 0.0; function setCurrentPosition(position) { myLat = position.coords.latitude; myLng = position.coords.longitude; } function…
dangerChihuahua007
  • 20,299
  • 35
  • 117
  • 206
1
vote
0 answers

What is the lifetime in major browsers of user consent for W3C Geolocation API?

According to section 3.1 of W3C Geolocation API recommendation: An end-user will generally give express permission through a user interface, which usually present a range of permission lifetimes that the end-user can choose from. The choice of…
1
vote
1 answer

Geolocation denied for HTML embedded site - anchor tag feature policy

The iframe with allow="geolocation" works great. But what if I want to load a link which calls getCurrentPosition() from a html anchor tag? Example : In iframe, I'll use