0
I am rebuilding my php system, but this giving an error, where the multiple pointers are not appearing and I am not able to find the error, because the map is being displayed, I believe the error is in the loop FOR but I am not able to locate the error, someone would 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
Thanks buddy, I’m gonna go through the code.
– Desenvolvedor