Alright, I found the post about the API changes to only make the zoom
animation for a change of a maximum of 2 zoom levels. And it also
appears that people aren't happy with the change. I was hoping there
was a method in the API to do this, but apparently I have to force the
Javascript to do it (Unless someone has a better idea).

I set my script up like this:

function initialize() {
...
// Start the countdown for the zoom in animation
        setTimeout("zoomIn()",INITIALZOOMDELAY);
...
}

function zoomIn() {
        if( map.getZoom() < ENDZOOM ) {
                map.setZoom(map.getZoom() + ZOOMINCRIMENT);
                setTimeout("zoomIn()", ZOOMFACTOR * 100);
        }
}

I have constants defined for the following:
// Zoom Animation
INITIALZOOMDELAY = 5000; // Number of Millisecond Delay
BEGINZOOM = 10; // Begin Zoom Level
ENDZOOM = 17; // End Zoom Level
ZOOMINCRIMENT = 1; // 1 or 2 only, 1 Slower(smooth animation), 2
Faster(rough animation)
ZOOMFACTOR = 2.0; // 2.0 - 0.1 (Slower (rough animation), Faster
(smooth animation))

Where INITIALZOOMDELAY is used in the creation of the map and is set
as the map's initial zoom.

Hope this helps someone! And I am open to any other ideas people might
have!!

-Kivak

On Jun 30, 11:40 am, Kivak <[email protected]> wrote:
> Hello everyone!
>
> I am trying to make a little animated intro to my map where, for
> instance, you start at zoom level 4 and go to zoom level 17. Is there
> a way to do that in Javascript?
>
> I know there is a panTo() function, but I haven't found anything that
> does the same for altitude.
>
> Thanks a bunch!
> -Kivak

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