I am rebuilding my php system, but this one is giving a mistake, where the multiple pointers are not appearing and I can not find the error because the map is being displayed, I believe the error is in the FOR loop but I I can not find the error, would someone help me?
var locations = [];
locations.push ( {name:"Las Vegas", latlng: new google.maps.LatLng(36.255123, -115.2383485)} );
locations.push ( {name:"California", latlng: new google.maps.LatLng(36.778261, -119.4179324)} );
locations.push ( {name:"New York", latlng: new google.maps.LatLng(40.7143528, -74.00597309999)} );
for(var i=0;i<locations.length;i++){
var marker = new google.maps.Marker({position:locations[i].latlng, map:map, title:locations[i].name});
}
Thank you