Hi all,

Thanks again for your help thus far. I've got... something, but I
could use a little troubleshooting help.

I've decided to read the XML and find the line of XML with the
matching venue name within PHP. Then I echo the Javascript for the
map, including $venuexml. So far, so good.

However, my all-venues map ( 
http://www.stillepost.ca/calendar/venues/montreal.php
) was read from an external XML file, and now I need the map JS to
read XML from a string. I tried adapting the first script, but I'm not
sure what to chop. I removed the sidebar and the GDownloadUrl loop...
I've Googled around but can't seem to fix my problem.

If you're so inclined, I'd appreciate any help. Here's an example
event:
http://stillepost.ca/calendar/montreal/view_entry2.php?id=1857

In this example, here's the string I'm passing to the Javascript,
using GXml.parse (?)

<?xml version="1.0" encoding="utf-8" ?><markers><marker><venuename><!
[CDATA[ Friendship Cove ]]></venuename><infowindow><![CDATA[ <a
href="http://www.flickr.com/photos/garbagebox/3537262804/";
title="Complications by them boxes, on Flickr"><img
style="float:left;padding:2px;border:4px double #999;margin-right:
12px;" src="http://farm4.static.flickr.com/
3107/3537262804_d37e681744.jpg" width="90" height="67"
alt="Complications" /></a><strong><a href="http://www.myspace.com/
friendshipcove">Friendship Cove</a></strong><br />215a rue Murray<br />
(514) 933-5518 ]]></infowindow><location lat="45.492710"
lng="-73.559486" /></marker>
</markers>

 (Note that I've made $venuexml a single specific venue, "Friendship
Cove", just for simplicity, because I haven't dealt with the accented
characters problem yet. The venue being mapped won't match the one in
the event listing, while I test.)

The div appears (in fact it appears twice, why I do not know) but not
the map or the markers.


Two other, less important questions:

- Why do my info windows (which you can see on the all-venues map)
wrap text rather than expanding? How should I tell the script to size
the info window's width to its content? (I'd prefer not to set a
static width if possible.)
- How can I add a link from the event map

Thanks so much again.
--~--~---------~--~----~------------~-------~--~----~
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