Hello Pamela
Could you expand on this a bit please. I have used your guidance and
code to build a map (
http://www.donzo.net/dev/hogs/map/map.html) from
an xml file (thank you so much), and would really like the FOR loop to
also populate a list of links that open the info boxes, in the UL to
the side.
I'm sorry but I'm new to javascript and the API, so as clearly as
possible would be much appreciated.
Thanks
On Jul 28, 6:58 am, "pamela (Google Employee)" <
pamela...@gmail.com>
wrote:
> Hi Logan-
>
> You can call a JavaScript method to open up the relevant marker. You
> could stick your markers in a global array and then have a function
> like openInfoWindowOverMarker(index).
>
> - pamela
>
>
>
> On Thu, Jul 23, 2009 at 11:56 PM, Logan<
logan.m...@gmail.com> wrote:
>
> > Awesome.
>
> > Thank you for the help Pamela. This works perfectly.
>
> > If I may, my next question is:
>
> > How can I link from outside the map to make the overlay open?
> > See my page here:
http://www.orlandohomeguides.com/searchListings.htm?city=riverview
>
> > I want to link up the map it links next to each listing view.
>
> > Thank you again,
> > Logan
>
> > On Jul 22, 6:18 pm, "pamela (Google Employee)" <
pamela...@gmail.com>
> > wrote:
> >> Sure, here you go:
http://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/downloadu...
>
> >> - pamela
>
> >> On Sun, Jul 19, 2009 at 11:14 PM, Logan<
logan.m...@gmail.com> wrote:
>
> >> > I was hoping for an example that can combine your examples above using
> >> >XML, to also add functionality like:
> >> >
http://code.google.com/apis/maps/documentation/v3/examples/infowindow...
>
> >> > I would like to have myXMLpass al the info for the marker and the
> >> > overlay window... For Example:
>
> >> > <markers>
> >> > <marker lat="37.427770" lng="-122.144841" id="1"
> >> > overlayTitle="Uluru" overlayData="Uluru, also referred to as Ayers
> >> > Rock, is..." />
> >> > <marker lat="37.413320" lng="-122.125604" id="2" overlayTitle="Bob"
> >> > overlayData="Just some text for Bob..."/>
> >> > <marker lat="37.433480" lng="-122.139062" id="3"
> >> > overlayTitle="Larry" overlayData="Just more text for Larry..."/>
> >> > <marker lat="37.445427" lng="-122.162307" id="4" overlayTitle="Jr"
> >> > overlayData="Jr is small..."/>
> >> > </markers>
>
> >> > These would appear as markers on the map, and be clickable to have the
> >> > box popup with the data inside it. This would allow for a single way
> >> > to get the data from the DB (output through theXML) and then be