So I'm working with the Google Maps Javascript Api and currently have a map that is populated with circles. I want to be able to click on a circle and have it open a table with some information, but am unsure about how to do this. I have been able to click on the circle and have it pop open an info box using this:
var contentString = city[0].toString() + ": " + city[1].toString() + " shooting(s)";
var infoWindow= new google.maps.InfoWindow({
content: contentString
});
google.maps.event.addListener(cityCircle, 'click', function(ev){
infoWindow.setPosition(cityCircle.getCenter());
infoWindow.open(map);
});
// });
}
What I'm not sure about is how to format this info box into a table. I've tried something like this:
var contentString = "<table width="100%" border="1">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td rowspan="2"> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>";
But that gave me the error: "Unexpected number". If anyone could provide some help it would be much appreciated!