On Jan 14, 10:21 am, Allan Rogers <[email protected]> wrote:
> Hi again, I searched and searched and couldn't quite find what I am
> looking for.  Probably because I don't fully understand the
> terminology.  Anyhow, here is the problem.
>
> I have an XML file with about 40 locations that I want loaded on a
> map.  These locations will be used on multiple maps.  On each of the
> different maps, I will want one of the 40 xml locations info window to
> be opened automatically.  I know that I will need to do a
> marker.openInfoWindowHtml(infowindowurl);, but I don't really
> understand which parameters to pass the openInfoWindoHtml.
>
> Here is the function to create the marker
>
> function createMarker(point,name,infowindowurl,icon) {
>         var marker = new GMarker(point,icon);
>         map.addOverlay(marker);
>                 GEvent.addListener(marker, "click", function() {
>                         GDownloadUrl(infowindowurl, function(infowindowurl) {
>                                 marker.openInfoWindowHtml(infowindowurl);
>                         });
>         });
>       }
>
> Here are two of the xml markers
>
> <marker lat="36.11773558007828" lng="-115.17765998840332" label="Place
> 1"  iconlocation="/images/mapLogos/place1.png" iconWidth="89"
> iconHeight="34" infowindowurl="/include/maps/place1.html"/>
>  <marker lat="36.11428610444692" lng="-115.17233848571777"
> label="Place 2"  iconlocation="/images/mapLogos/place2.png"
> iconWidth="71" iconHeight="31" infowindowurl="/include/maps/
> place2.html"/>
>
> Any help would be greatly appreciated.

A link to your map and/or the xml file would be useful.  I offer this
as an example:
http://www.geocodezip.com/xmlTabsQueryStringLinkTo.asp?marker=1&tab=2

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