On Feb 4, 7:26 pm, xelawho <[email protected]> wrote:
> > Last I looked at your page you were not doing this (creating the DOM
> > element yourself):
>
> ah, ok. Thanks for explaining that. Thing is, I'm either missing
> something really obvious or it's something else, because even with
> that code,
your code is different:
you create the div for the map here:
var detailMapEl = document.createElement("div");
detailMapEl.setAttribute("id", "detailmap1");
tab2 = new GInfoWindowTab("Location", detailMapEl);
var infoTabs = [tab1,tab2];
marker.openInfoWindowTabsHtml(infoTabs, {maxWidth: '250'});
but then use this one for the map:
var dMapDiv = document.getElementById("detailmap1");
var detailMap = new GMap2(dMapDiv,{size:new GSize(250,150)});
the first you have a reference to the second will not work until it is
added to the DOM (after the infowindow is opened.
Look carefully at my code.
-- Larry
> I seem to have just replicated the problem - works fine in
> Chrome & FF, grey square 'til you click something in IE...
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" 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.