I'm thinking it might be something in your css that's is interfering
with it. Here is an example that does what you want (at least in
Chrome and FF).

http://recalcitrant.us/simpleMap/

Please note I set the style of the content div after making the
marker. When I tried to do the same thing (via inspector) on your map
it didn't work. Hope this helps.

On Oct 5, 10:35 pm, dcolpi <dco...@yahoo.com> wrote:
> Unfortunatly, removing the artworksummary wrapper div didn't work.  I
> have left it out to confirm this.
>
> However, you might be correct about the map setting theinfowindow's
> height before the CSS is applied.  I am shrinking much of the text as
> part of my formatting.  So this might be it.  Can anyone confirm that
> Google sets theinfowindowsize before CSS is applied (but after
> content is loaded)?  If so, is there a way to force a re-evaluation of
> the window size?  Or any way to explicitly set the height of theinfowindow?  
> Has anyone had luck trying to directly do this via
> javascript?  I tried to apply some CSS styles to the "Google added"
> wrapper divs, and the outcome was less than successful (I got holes in
> myinfowindow).
>
> Thanks in advance for any help,
> Daniel
>
> On Oct 4, 5:23 am, JoshN <joshua.l.new...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I don't see a maxHeight for infoWindows. See:
>
> >http://code.google.com/apis/maps/documentation/javascript/reference.h...
>
> > If you drop the artworksummary wrapper, then the content actually
> > fills theinfowindow. I believe map is setting theinfowindow'sheight
> > before you CSS declarations are enacted, so that your content is the
> > right size, but the window is not. Hope this helps.
>
> > On Oct 3, 9:22 am, dcolpi <dco...@yahoo.com> wrote:
>
> > > I have a map where I am using multiple markers to display locations of
> > > items (picture + description) via a centralinfowindow(one
> > >infowindow, multiple markers)  I have set maxWidth (and maxHeight) of
> > > myinfowindowand also styled a div I have containing myinfowindow
> > > content.  However theinfowindowis sizing itself way too big.
>
> > > Take a look at this map in my test enviornment (might want to maximize
> > > the window before you load... or load, maximize, and 
> > > refresh):http://www.thecolpis.com/leecolpi/map.php
>
> > > Here is the javascript that is used to build the 
> > > map:http://www.thecolpis.com/leecolpi//JAVASCRIPT/map_js.php(yesitis
> > > php, but it outputs javascript)
>
> > > As you can see, theinfowindowseems to want to be almost as tall as
> > > the map canvas (however big that is).  I used Opera's "inspect
> > > element" functionality and found that my container div (inner html
> > > content of theinfowindow) is being sized correctly.  However, using
> > > the same functionality in Opera, I see that Google is applying some
> > > inline styles to container divs that is making thisinfowindowvery
> > > big.  Here are some suspecious styles:
>
> > > #map_canvas div div div div#gmnoprint div has a hight specified of
> > > 404px via an inline style
> > > #map_canvas div div div div#gmnoprint div div has a hight specified of
> > > 372px via an inline style
>
> > > My max height of theinfowindowvia google maps and the content div
> > > via css is 200px.  The map_canvas was set to a height of 554px (vis
> > > css).  You might see different values when you load the page, as the
> > > php dynamically adjust to your window height (hence the request to
> > > maximize your window).
>
> > > One thing to note... since I have multiple markers and oneinfowindow
> > > (I don't want to have multiple infowindows open on the page at once,
> > > so I use 1infowindowthat moves from marker to marker when you click
> > > on a marker), I dynamically set the inner content of theinfowindow
> > > based on the contents of a propertity that I added to the marker
> > > object.  I am not sure if this is confusing or not, so I made another
> > > page with just one marker that has the same issue I am asking about:
>
> > >http://www.thecolpis.com/leecolpi/test_big_info.php
>
> > > javascript is 
> > > here:http://www.thecolpis.com/leecolpi/test_big_info.php/JAVASCRIPT/map_bi...
>
> > > Please let me know if I am doing something wrong or if there is a way
> > > to correct this.
>
> > > Thanks in advance,
> > > Dainel- Hide quoted text -
>
> > - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to