AnsweredAssumed Answered

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

Question asked by detroit on Jul 31, 2015
Latest reply on Jul 31, 2015 by detroit

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

Outcomes