On Aug 23, 8:31 am, "[email protected]" <[email protected]>
wrote:
> On Aug 23, 8:19 am, "[email protected]" <[email protected]>
> wrote:> On Aug 23, 2:47 am, Will <[email protected]> wrote:
> > > Hi,
>
> > > I have created a map using XML data parsing.
>
> > > I have added all of my markers showing the company depots but my
> > > client wishes to have the Head Office (one of the markers) come up
> > > automatically first.
>
> > > I am trying to make the corresponding Info Window come up first on
> > > load although am struggling of where to put what code.
>
> www.tacltd.co.uk/map2
>
>
>
> > > Linked files are:
>
> www.tacltd.co.uk/data.xmlwww.tacltd.co.uk/gmaps.js
>
>
>
> > > Thanks
>
> > Does this 
> > help?http://www.geocodezip.com/xmlTabsQueryStringLinkTo.asp?marker=1&tab=2
>
> Although if you change your createMarker function to create an array
> of gmarkers
> define gmarkers = []; in the global scope
> then add gmarkers.push(marker); to the createMarker function.
>
> Adding this line (click on the first marker in the array):
> GEvent.trigger(gmarkers[0],"click");
> at the very end of the callback function that is processing your xml
> will do what I think you want...

Like this:
http://www.geocodezip.com/tacltd_co_uk_map2b.html

Although you haven't defined your icons completely, so if you click
on:
Harwood House, West Thurrock

the main location is in the shadow of the infowindow and takes two
clicks to open.

You need to define the click targets:
icon.transparent
icon.imageMap

   -- Larry

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