I also work for a simillar application using sencha touch 2.3.1
Using the Ext.util.Geolocation class to get the current location and automatically update currentPosition using the following code.
Ext.create('Ext.util.Geolocation', { autoUpdate: true, allowHighAccuracy: true, frequency: '5000', // set the milliseconds for the location update listeners: { locationupdate: function(geo) { latitude=Global.currentUserLocations.currentLat; longitude=Global.currentUserLocations.currentLong; if(Global.currentUserPositionMarker) { latlng1=new google.maps.LatLng(latitude, longitude); Global.currentUserPositionMarker.setPosition(latlng1); } } } });
The above code worked for me, and I already used in my application to get currentLocation and moved the marker to currentPosition.
source share