On Jun 21, 1:36 pm, CWR2010 <[email protected]> wrote:
> Thanks for the help Larry.
>
> I worked through those tutorials earlier and attempted to get it up
> and running, which I did (with a sidebar).
>
> How would I go about using my current buttons (the lines that say
> Cotherstone Village Hall etc) to setCenter on the markers, rather than
> a sidebar?

Look at how those tutorials work.  You need to add the appropriate
code and html to your current "buttons" to open the infowindow of the
associated marker (or if you want center the map on the associated
marker).  It might make sense to modify the way your page works to out
put the information to create your "buttons" into xml (making the
assumption that it is coming out of some kind of a database), then
doing something like:
The Basics - Part 3 Loading the data from an XML file
http://econym.org.uk/gmap/basic3.htm

or the "Store Locator" tutorial, just formating the "sidebar" as your
"buttons" are now.

>
> As I say, I'm a novice with this so I'm really grateful for any help.

We were all novices at one point.

  -- Larry

>
> On Jun 21, 4:11 pm, "[email protected]" <[email protected]>
> wrote:
>
>
>
> > 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 
> > sidebarhttp://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- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

-- 
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.

Reply via email to