> I was
> looking for something a bit different, though. I originally wanted to
> force the viewport to exactly match the lat/lon coordinates (so that
> the map only shows the content within the bounds).

The maps only come in integer zoom levels, so you can't make an exact
span fit a fixed size viewport.  Complicated further if the exact E-W
and N-S spans you choose don't fit the shape of your viewport.

It should be possible to acheive what you want by changing the size of
the viewport, but it's going to be difficult to do the pixel-level
maths and probably unpleasant to look at.

Would an alternative approach help in your use case, maybe drawing a
red box on your exact bounds?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to