2009/10/20 Robert <[email protected]>: > > I'm trying to display the full continental US in a zoom level 4 type > of view. But I can't seem to find a way to do that in a <div> smaller > than 680 x 400 which is too big for the layout of my site. In other > words, changing the size of the <div> doesn't actually change the size > of the map, it only changes which part of the map I can see. Is that > how it's supposed to work?
Yes. The maps are pre-rendered images so a particular zoom level will always be a certain pixel size - no matter the size or shape of the containing div. > > Ideally we want to use a <div> that's no bigger than 580 x 340. But > as you can see in my example, the US doesn't quite fit, and changing > to zoom level 3 makes a map that's too small. > > I've looked for things like setting the size of the viewport, or > specifying a SW/NE bounding area, but neither of those sound like they > can be used for this. You can do both of these - but all they are going to do is change the zoom level (which is integer) > > http://coffeeandwifi.com/Gmaptest2.html > > > > > -- Barry - www.nearby.org.uk - www.geograph.org.uk - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
