On 6 April 2011 23:42, Scott Judson <[email protected]> wrote:
> We have a report that shows where 2 markers are on a map, works great except
> when the markers are next to each other it zooms in to the highest level of
> zoom.
>
> We want the min zoom to be open ended, but set the max zoom to a certain
> level. I have looked through the Google Static Map documentation, and cant
> see where to do it.
>
> Does anyone know if this is possible using the static map api?

Don't forget that the static map is static: you tell it what you want,
and it does it. If you don't tell it what zoom you want, the server
has to guess when it creates the image.

For one marker, it will create a map which provides a bit of context.
Presumably this is acceptable for you. For two or markers, it zooms
the map to fit them. If they are close together, this could result in
a map showing only a few yards of street.

The solution is to fix your zoom with a &zoom= parameter in the URL,
as shown in the documentation.

What you can't do is limit the guess made by the server. Either let it
make the decision or make the decision yourself.

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

Reply via email to