I've got the same problem in Google Maps v3 and have found a fix. I
don't know if it's working in v2...
The solution: just place a wrapper div around your map-div:
<div id="googlemapwrapper"><div id="googlemap"></div></div>
and use the following CSS:
#googlemapwrapper { position: fixed; } /* add values for top, bottom,
left, right, width, height,... as you wish */
#googlemap { position: absolute; top: 0; right: 0; bottom: 0; left:
0; }
Works just as expected!
On Feb 11, 1:33 am, Tom Wardrop <[email protected]> wrote:
> I'm trying to give the map container/div a CSS position of 'fixed',
> but Google Maps seems to only allow values of absolute or relative; in
> other words, if set to "position: fixed", the Google Maps API sets the
> position to relative.
>
> Does anyone know how to disable this behaviour as to allow "position:
> fixed"?
>
> Cheers
--
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.