Woohoo! It works :^)

I need to mess with the CSS now (I think) because it doesn't work
properly when I use CSS to go from display:none; to display:block; for
print. It seems to be giving me trouble (again) with being centered on
print. I figured if the div was just hidden on screen and displayed on
print it would work OK, but that's not what I'm getting :^(

It works great if I keep it on screen, but no dice for the method that
I thought would fix my print trouble. It may be back to the pixel-
sized map div for now. Sigh... Am I the only one who hates divs sized
in pixels? Seems as though I may have no choice.

My wife thinks I'm nuts for caring about making it print perfectly,
and it's her site--but I just want the thing to work correctly since I
wrote it. And it's good experience to learn a bit of JavaScript;
there's no better way to learn than to try to fix problems.

Thanks again,
-Brian

On May 7, 8:54 pm, Brian P <[email protected]> wrote:
> This looks promising...thanks!
>
> I will report back with the results.
>
> -Brian
>
> On May 7, 7:38 pm, Mike Williams <[email protected]> wrote:
>
> > It would seem logical for the .openInfoWindowTabs call to move the node
> > into the info window rather than take a copy, that's what the non-Html
> > version of .openInfoWindow does.
>
> > The workround for .openInfoWindow is to .cloneNode() the data.
>
> > The workround for .openInfoWindowTabs would be to clone the Tabs. That
> > is possible, but only by using the undocumented properties (name and
> > contentElem) of GInfoWindowTab.
>
> > I don't understand the purpose of your "m" marker, so I've not bothered
> > using it in this code:
>
> >       GEvent.addListener(map, "infowindowopen", function() {
> >         var iw = map.getInfoWindow();
> >         var tabs = iw.getTabs();
> >         var tabs2 = []
> >         for (var i=0; i<tabs.length; i++) {
> >           tabs2.push(new GInfoWindowTab(tabs[i].name,
> >                 tabs[i].contentElem.cloneNode(true)));
> >         }
> >         map2.openInfoWindowTabs(iw.getPoint(), tabs2,
> >                 {pixeloffset:iw.getPixelOffset()});
> >       });
>
> > The code gets the tabs from the infowindow, then creates a new tabs2
> > array, copying the "name" and cloneNode()ing the "contentElem" of each
> > of the tabs. The (true) parameter of .cloneNode causes it to copy all
> > the child elements of the node.
>
> > Because this relies on undocumented properties of GInfoWindowTab, you
> > should specify a specific version of the API (e.g. v2.156) that's known
> > to support those properties.
>
> > --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