Hi
I'm trying this,
if (bounds.length == 1){
map.setCenter(new GLatLng(bounds), 14);
}else{
map.setZoom(map.getBoundsZoomLevel(bounds));
map.setCenter(bounds.getCenter());
}
But its doesn't work, the map still zooms in giving 'sorry.....no
tiles '
I'm sure I'm overlooking something simple :(
...
alec
http://groups.google.com/group/gtrack
On Jan 22, 10:25 pm, Rossko <[email protected]> wrote:
> > Is there any way, if the bounds are only 1 point [so it zooms in real
> > close] to overcome this?
>
> Choose a minimum zoom level that you like.
> Calculate an 'auto' zoom level using the bounds.
> Compare, and if auto is less than your minimum, reset value to your
> minimum value.
> Apply the zoom value ...
>
> cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---