Hi Mike,

Thanks for the response... I've seen some of your other responses and
they are very poignant.You can't really notice the problem at first
glance with this page. Perhaps I need to explain in further detail.

The Info Windows should be containing more than just the "title" of
the site. If you look at the kml file that I'm parsing, I've added a
few extra tags for the left-most icon ONLY (Kearney Villa Rd.) to
display. They are called <sites></sites> in the kml. I can read in the
values and get them in an array ("sites" variable in the Javascript
code). This is what I'm using to build the variable called
"InfoWin_html", which should be displaying in the Info Windows. So
far, I've only tested it with that left-most icon, so the others would
not show anything more than simply the title.

The problem is that this left-most icon (Kearny Villa Rd) is somehow
not displaying the additional HTML at all, which leads me to believe
that the Info_Win_html variable is not reaching the inside of the
GEvent.addlistener listener. Again, if I simply copy/paste the value
of InfoWin_html in the "marker.openInfoWindowHTML" method, it displays
absolutely fine. Here is the actual contents of the InfoWin_html
variable upon placing a stop just after the variable is built:

"<div style='padding:5px'>Otay Lake<br>Looking north to hill across
road<br>Looking west to Dulzura Creek<br>near ground on ranch
land<br>Looking to rocky land on ranch<br></div>"

This should be showing up in the left-most icon...

A colleague suggested that the InfoWin_html variable is not persisting
to the listener (which I agree with), but I'm not sure how to make
that happen. He suggested creating a property for the "marker" class
and then calling on that property inside the listener. He though that
would allow the html to persist to the listener. That doesn't work
either. Any suggestions on how to get that darned html inside the
listener?

Here's what I tried:

(outside the listener)
marker.useThisHTML = InfoWin_html;

(at the openInfoWindow call)
marker.openInfoWindowHtml(marker.useThisHTML, {maxContent:
maxContentDiv, maxTitle: name});

STILL NOTHING :(

Again, your help and insight is appreciated!

Jeremy

On May 12, 11:58 pm, Mike Williams <[email protected]> wrote:
> I can't see any problem on that page. Is it possible that the link
> you've provided is to the wrong page, i.e. to a page that doesn't
> exhibit the problem that you're experiencing.
>
> Do you understand Function Closure? If not, see if this helps:
>
>  http://econym.org.uk/gmap/closure.htm
>
> When you're making nested asynchronous calls, you may well need to make
> a local copy of the variable in the first callback function, so that the
> first callback gets the data via Function Closure from the calling
> function, and the second callback gets a copy of the data via Function
> Closure from the first callback function.
>
> --http://econym.org.uk/gmap
> The Blackpool Community Church Javascript Team

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