PDA

View Full Version : How to stop receiving updates from Ext.util.GeoLocation



chandramuralis
3 May 2011, 10:26 AM
I'm trying to use Ext.util.GeoLocation with "autoUpdate" property set to true and I don't have any issue in it. How do I stop receiving location update from this API?
I know default navigator.geolocation.watchPosition returns the long integer and we can use this to stop receiving new position updates. I'm looking for something similar to that.

mitchellsimoens
3 May 2011, 12:35 PM
have you looked through the docs?

http://st/docs/?class=Ext.util.GeoLocation

Maybe the setAutoUpdate method will work?

chandramuralis
3 May 2011, 12:41 PM
I assumed calling "setAutoUpdate" and changing "autoUpdate = false" are same and didn't tried that function. I'll test this function and find out if it helps. Sorry for my mistake.

Thanks,
Murali.

chandramuralis
4 May 2011, 5:25 AM
yes this function worked perfectly.

Thanks,
Murali.

mitchellsimoens
4 May 2011, 5:29 AM
Awesome! =D>