Select to view content in your preferred language

"Find my location" is not working in firefox

369
2
Jump to solution
10-22-2013 05:21 AM
SunilPalkar
Deactivated User
Hello All,

I am using ArcGIS JSAPI 3.7 at my end.

"Find my location" tool is not working in Firefox (working good in Chrome)

So is there any solution for this?

Any help will be great !!!

thanks in advance : )

My code : http://jsfiddle.net/sunilspalkar/LRpzg/
0 Kudos
1 Solution

Accepted Solutions
MattDriscoll
Esri Contributor
Hi Sunil,

It appears that there's a Firefox bug with Geolocation. There is a workaround that should fix it though.

Set the geolocationOptions to these values. They seemed to fix the issue while I was testing.

[HTML]
     geoLocate = new LocateButton({
        map: map,
        geolocationOptions: {
                maximumAge: 0,
                timeout: 15000,
                enableHighAccuracy: true
        }
      }, "LocateButton");
[/HTML]

http://jsfiddle.net/LRpzg/3/

This is the bug I believe is causing the problem:
https://bugzilla.mozilla.org/show_bug.cgi?id=732923

Let me know if that fixes it for you.

Thanks!

View solution in original post

0 Kudos
2 Replies
MattDriscoll
Esri Contributor
Hi Sunil,

It appears that there's a Firefox bug with Geolocation. There is a workaround that should fix it though.

Set the geolocationOptions to these values. They seemed to fix the issue while I was testing.

[HTML]
     geoLocate = new LocateButton({
        map: map,
        geolocationOptions: {
                maximumAge: 0,
                timeout: 15000,
                enableHighAccuracy: true
        }
      }, "LocateButton");
[/HTML]

http://jsfiddle.net/LRpzg/3/

This is the bug I believe is causing the problem:
https://bugzilla.mozilla.org/show_bug.cgi?id=732923

Let me know if that fixes it for you.

Thanks!
0 Kudos
SunilPalkar
Deactivated User
Great !!!

Appreciate your quick response !! Its working fine in Chrome and Firefox .. Cool !!

Thanks a lot : )
0 Kudos