Hello all,

I have spent a lot of time in the last few months happily adopting
gadgets and tools I've found here to make something interesting but
I'm getting mixed results in just one thing: I am attempting to get a
map to load in an opened window. It has worked but there's a
persistent problem (several actually - but let's start with the
first).

Please refer to the Google Map API example here for what example I'm
attempting to adopt.

http://gmaps-samples.googlecode.com/svn/trunk/megawindow/maxcontent_ajax.html

I have been attempting to load a map into the maximized window.

What I get is a "stacking" every time a marker is clicked, another
instance of the clicklistener(s) is loaded and executed creating a
loop equal to the number of clicks.

The ajax is simple:

<div id="map_Canvas2" style="width: 350px; height: 350px" ></div>


The call to that file is successful but the ID  "map_Canvas2" is not
"always" seen by the "document.getElementById" function

Choose any of the buttons on the left of the map and click on a marker
then maximize the infowindow - close the infowindow and repeat

There are debugging alerts so you can easily see the loop.

http://www.cg-gig.com/html/animvfx_5.php

The only time I see the map actually loads - if ever - is when the
infoWindow maximize before the debugging alerts pop up.

Search for "if(!document.getElementById("map_Canvas2"))" for the area
where this code lives.

There are several other issues with how this doesn't work and this
might not even be the best gadget to use to put up 2 levels of info. I
see info windows that expand on the web but I don't find the code.

I do appreciate anyone spending a minute or 2 looking at this.


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