Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Ben
Occasional Contributor
Posts: 18
Registered: ‎10-14-2015

$GP.position.getCurrent timeout

Suggestion for a future release of the MMW SDK: Include a configuration option for the timeout for the $GP.position.getCurrent method

 

We prefer using this method rather than the navigator.geolocation methods as we get the coordinates back in the current map CRS. The issue is that the default timeout (2 seconds) is too short for some android devices to get the current GPS position. We are currently modifying the app.js file to increase the timeout, but it would be preferable to include the timeout value in the method call.

Technical Evangelist
Posts: 184
Registered: ‎07-30-2015

Re: $GP.position.getCurrent timeout

Thanks for the suggestion. I added it to our backlog.

 

We're planning to add a "GPS warming" mechanism. E.g. On the app start, the app would pool the sensor for location. Then when user requests for  a position, it would take less time to retrieve it.

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.