Hi.

I have a problem trying to set the map size at which the small map
type control is used instead of the large map type control.

http://googlemapsapi.martinpearman.co.uk/user_maps/bellamallorca.dk/gmapuioptions/google_map_large.php

I had previously set the UI to default with the line:

map.setUIToDefault();

But now i have added the two buttons top left of the map and have a
problem.
When the map reaches about 488 pixels in width my two buttons top left
intersect with the large map type control top right.

Once the map reaches 400 pixels in width and the large map type
control is replaced with a small map type control then all is well.
(This was when i used 'map.setUIToDefault();')

I changed the line:

map.setUIToDefault();

to:

map.setUI(new GMapUIOptions(new GSize(488, 300)));

Now the map type control remains large even after the page is less
than the default 400 pixels used by GMapUIOptions - my setting of 448
pixels not only doesn't work but now the default behaviour is broken.

Can anyone spot where i've gone wrong?

Thanks.

Martin.

--~--~---------~--~----~------------~-------~--~----~
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