JSFiddle - React, Tailwind, and code Playground
by tjnicolaides
JavaScript
var points = [
{
'position' : new google.maps.latlng(),
'title': 'Philadelphia, PA'
},
{
'position' : new google.maps.latlng(),
'title': 'Conschy, PA'
},
{
'position' : new google.maps.latlng(),
'title': 'Norristown, PA'
}
];
for(i=0; i < points.length; i++) {
// points[i]
var marker = new google.maps.Marker({
position: points[i].position,
map: map,
title: points[i].title
});
}