I've got a database with locations in it, lat longs, names, descriptions etc and I'd like to populate infowindows with the data (The html infowindow).
I'm fine getting the points on the map, and I can probably figure out how to get the info window to popup when a marker is clicked on.
I've found the following code that I'd need to modify:
I suppose if I've got my db query results which decides what locations to put on the map, I could create some kind of object out of it, where the name and description of the location are 2 properties of the object, then just loop through them?
I feel like the answer is on the tip of my brain, but I can't quite get it, if anyone could help, I'd very much appreciate it.