On Jun 21, 6:31 am, CWR2010 <[email protected]> wrote: > Hi folks. I'm new to this group so bear with me for a moment. This is > the first website I've ever designed so I'm a novice at this. > > I'm working on a website page (http://www.rjt-online.com/ > shows_new_test2.php) at the minute that requires google maps to be > interactive and for it to change location automatically when you click > on different "Gig/Show" listings. > > As you can see from the link, I have managed to figure out how to add > an interactive google map to my page with a set location and figured > out how to add markers. I would like the map to center around > different markers when you click on different shows (so when you click > on the show that says "Cotherstone Village Hall" it will center around > the marker for Cotherstone Village Hall... then when you click on O2 > Academy, it will center around the marker for O2 Academy). > > As I say I'm a novice, so any help would be greatly appreciated.
You have errors in the non-maps related code (the facebook and twitter code). Have you seen Mike Williams' tutorial? http://econym.org.uk/gmap/ In particular the page: The Basics - Part 2 Adding a clickable sidebar http://econym.org.uk/gmap/basic2.htm That is an example of how to make a clickable sidebar that opens infowindows on the markers. If you don't need the infowindows, just center the map ( .setCenter() ) on the appropriate marker rather than opening the infowindow. -- Larry > > I'm basing this functionality off a flash widget that can be seen here > (www.rjt-online.com/shows.php) if you need to know what I'm trying to > achieve. > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
