I am trying to apply markers on a map, the problem is that I do not paint the markers, I am checking the coordinates with an alert and it works well. What I want to achieve is that every second that passes show a marker with respect to its coordinates. I do not know what could be happening

Here the code:

var i=1; marcador(Mapa,i);

function marcador(Mapa,i) {
    var image = 'iconos/busandando.png';                        
    var objConfigMarker={position:getLatLong(i),map:Mapa,icon:image}
    var marker=new google.maps.Marker(objConfigMarker);
    tiempo=setTimeout(function(){marcador(Map,i+1)}, 3000);

I have seen similar questions but they do not solve my problem

0 Answers