JS LocateButton issues when enabling or disabling GPS during "runtime"

1889
1
07-31-2015 03:41 AM
MatejSkerjanc
Occasional Contributor

Hi

First off, Im uncertain im writing in the right "forum" its a bit new to me, excuse my ignorance.

So the problem im having is that i've implemented the LocateButton from esri and

1. if i dont have the GPS turned on when the app is started, meaning i turn it on after the LocateButton has been initialized etc. the "locate" event reports only error of something in the lines of "User denied location service".

2. And if i stop the GPS during application runtime (being previously turned on) i get the msg "Timeout expired".

How can i "reboot" LocateButton to start accepting new GPS states?

Best regards,

Matej

0 Kudos
1 Reply
MatejSkerjanc
Occasional Contributor

just emitting "load" works ( for issue 2 only)...still seems unsafe and unsatisfactory

0 Kudos