Results 1 to 8 of 8

Thread: Get GPS location of device?

  1. #1
    Sencha User
    Join Date
    Nov 2007
    Posts
    294

    Default 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

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,253
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha User
    Join Date
    Nov 2007
    Posts
    294

    Default

    That's not global positioning system? I meant the GPS latitude/longitude.

  4. #4
    Sencha User
    Join Date
    Nov 2007
    Posts
    294

    Default

    nm. I see how it works now. Thanks!

  5. #5
    Sencha User
    Join Date
    Nov 2007
    Posts
    294

    Default

    I tried this on android phone and it doesn't seem to work.

  6. #6
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,450

    Default

    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 @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  7. #7
    Sencha User
    Join Date
    May 2012
    Posts
    9

    Default

    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. Ive been searching for hours for an solution. Im 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 !!!

  8. #8

    Default

    Quote Originally Posted by evant View Post

    I have manage to create GPS Location to get current location its working only when the location is enable on the device, how do i do auto detect for location to ask user to enable GPS.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •