-
16 May 2012 5:35 PM #1
Get GPS location of device?
Get GPS location of device?
Hi,
Is there any way in touch 2.0 to get the GPS location from the device and use it?
I couldn't find any answers in the forums or examples on how to do this. Perhaps it needs the native bundle?
thanks
-
16 May 2012 7:06 PM #2Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
17 May 2012 2:43 AM #3
That's not global positioning system? I meant the GPS latitude/longitude.
-
17 May 2012 2:50 AM #4
-
17 May 2012 4:57 AM #5
I tried this on android phone and it doesn't seem to work.

-
18 May 2012 6:24 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
We have an Ext.util.GeoLocation class that uses the HTML5 geolocation spec. There is the locationupdate event that fires when the coords are returned.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
23 May 2012 12:47 AM #7
Please could you give me an short example, how can I use the Ext.util.Geolocation class in the Ext.MAp class. I cant get this work at the andriod device. useCurrentPosition works perfect on iOS but not on android. I´ve been searching for hours for an solution. I´m using ST 2 / anroid 2.2.. It is possible without building a native app, just running on the android browser and get the current possition via GPS?
Thanks a lot....really great job this framework !!!


Reply With Quote