Hi Szymon,
If you know the zoom level that you want to display, I suggest calling:
map.setZoom(...);
map.panToBounds(...);
Regards
Ben
On Mon, Mar 29, 2010 at 7:00 AM, szimek <[email protected]> wrote:
>
> Hi,
>
> when I display a map with only one marker or a few markers very close
> each other, fitBounds() usually sets the zoom level to high.
> Unfortunately, resetting the zoom level using setZoom() right after
> calling fitBounds() doesn't change the zoom level. Is it possible to
> set a minimum zoom level in a way that would be respected by fitBounds
> function?
>
> Regards,
> Szymon
>
> --
> 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.
>
--
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.