javascript – manipulando múltiplos marcadores maps api

position var, marker, i;
for (i = 0; i <cariros.length; i ++) {

marker = new google.maps.Marker ({
position: new google.maps.LatLng (because[i][1], because[i][2])
map: map,
animation: google.maps.Animation.DROP,
icon: image,
title: because[i][0]
          
          
          
          });
google.maps.event.addListener (marker, 'click', (function (marker, i) {
return function () {
lugar = cariros[i][0];
console.log (read only);
muda-titulo (lugar);
mudaCenter (position = new google.maps.LatLng (because[i][1], because[i][2]));
toggleBounce ();
}
}) (marker, i));

}
toggleBounce () function {
if (marker.getAnimation ()! == null) {
marker.setAnimation (null);
} other {
marker.setAnimation (google.maps.Animation.BOUNCE);
}
}