Search code examples
javascriptsencha-touch

geolocation in sencha


I am making an app in sencha which tracks people on a map. What I would like to know is what I need to track other people. I need their latitude and longitude but I have no idea how to access that. Does anyone have an answer to this?


Solution

  • In Sencha Touch, there is a GeoLocation class that takes care of this for you. Have a look at the documentation, which contains also an example of how to use the class. http://dev.sencha.com/deploy/touch/docs/?class=Ext.util.GeoLocation