I working on a google map and have a bunch of markers with infowindows attached to them. I would like to make a list of links to the markers in the sidebar so when you click a link it goes to the pin on the map and opens the infowindow for for that marker. Any ideas go to go about this? I know nothing about javascript. I assume I need to use a onclick in the link and call the code to open the infowindow. This is where I am getting stumped.
This is the code I am using so the info window opens when I click on a marker:
And this is the site.http://stfudamnit.com/ryan/fluther/maps/
I would like it to function like this. http://econym.org.uk/gmap/example_map15.htm
Thanks in advance.
This is the code I am using so the info window opens when I click on a marker:
Code:
google.maps.event.addListener(marker1, 'click', function() {
infowindow1.open(map, marker1);
});
And this is the site.http://stfudamnit.com/ryan/fluther/maps/
I would like it to function like this. http://econym.org.uk/gmap/example_map15.htm
Thanks in advance.