On Apr 21, 7:37 pm, "[email protected]" <[email protected]>
wrote:
> On Apr 21, 11:11 am, TMXDesign <[email protected]> wrote:> Hi,
>
> > I can't seem to figure out why the map isn't displaying properly here:
>
> http://lbl.tmxdesign.co.uk/property.php?id=19
>
> > Has anyone had this problem before or know how to fix it?
>
> You mean the "zero size" div problem encountered when displaying a
> previously hidden map?
>
> either:
> 1. call map.checkResize() after the map is displayed
> or
> 2. use the size option in the GMap2 constructor (for fixed size divs).
>
> more information on both options above can be found in the
> documentation or by searching this group ("top left corner" or "zero
> size div" are two good candidate searches)
>
> -- Larry
>
>
>
>
>
>
>
>
>
> > Regards,
> > Rhys
Thanks. I'm new to maps api, where would I put the GSize?
Somewhere in here?
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
map.setUIToDefault();
}
}
--
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.