Hi,
I am trying to make an app in Sencha touch 2. I'm very new at this. This is my code.
HTML Code:



Ext.application({
    name: 'Applicatie 3.',
    launch: function() {
        var view = Ext.create('Ext.NavigationView', {
            fullscreen: true,
            items: [{
                title: 'Home',
                xtype: 'map',
                mapOptions: { zoom: 15, },
                useCurrentLocation: true,
                listeners: {
                    maprender: function(comp, map){
                        var geo = Ext.create('Ext.util.Geolocation', {
                            frequency: 3000,
                            autoUpdate: true,
                            allowHighAccuracy: true,
                            
                            listeners: {
                                locationupdate: function(geo) {
                                    var route =  [ ];
                                    route.push(  new google.maps.LatLng( geo.getLatitude() , geo.getLongitude() ) );


                                    //alert(  geo.getLatitude()+ ' ' + geo.getLongitude());


                                    var polyOptions = new google.maps.Polyline({
                                        path: route,
                                        strokeColor: "red",
                                        strokeOpacity: 1.0,
                                        strokeWeight: 5
                                    });
                                    polyOptions.setMap(map);


                                   var marker = new google.maps.Marker({
                                       position: new google.maps.LatLng(geo.getLatitude(), geo.getLongitude()),
                                       map: map 
                                    });


                                    var infowindow = new google.maps.InfoWindow({
                                        content: '........'
                                    });


                                    google.maps.event.addListener(marker, 'click', function() {
                                         infowindow.open(map, marker);
                                    });
                                },
                                locationerror: function(geo, bTimeout, bPermissionDenied, bLocationUnavailable, message) {
                                    if(bTimeout){
                                        alert('Timeout occurred.');
                                    } else {
                                        alert('Error occurred.');
                                    }
                                }                                                     
                            }
                        });
                        geo.updateLocation();


                    }                    
                } 
            }],
        });
    }
});


I'm trying to create a polyline from tracking my current location. I tried to do this with push. The array in var route is adding up, but it doesnt show up in the map.And i'm also trying to make the marker follow me. It is working a little bit. The marker is placing new markers of my locations on the map, but I need to make it to follow me. Something like, place marker, 3 sec later place new marker and delete old one.Please help me. This is for a school project