> I don't suppose you can dynamically set the size parameter? For
> example my map div gets its width automatically, so can we use the
> getSize() method or something similar to get the dimensions of the div
> and then feed these values into the GSize method?
Yes. If you want to feed a integer variable into the GSize option in
the GMap2 constructor, you can, that is just basic javascript.
xx = 92 + offset ;
yy = 320 ;
map = new GMap2(..., {size:new GSize (xx , yy}) ;
http://code.google.com/apis/maps/documentation/reference.html#GSize
If you resize the div after GMap2 is built, you must call
map.checkResize() after the resize action
http://code.google.com/apis/maps/documentation/reference.html#GMap2.checkResize
--
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.