PDA

View Full Version : Onload GPS position for map example



Applelunatic
5 Jan 2011, 6:33 AM
Hi experts,

I was playing with the map example. Is it possilbe to activate the GPS at app start and pan in the map to the GPS position a the beginning? Currently I have to press the locate button and the tracking begins. :-? I find no solution.
This didn't worked:



Ext.onReady(function() {
map.geo['resumeUpdates']();
map.geo['suspendUpdates']();

});


In a button handler it worked like a charm.
Thanks for help!

Cheers!

Applelunatic
6 Jan 2011, 6:13 AM
No ideas?