[Google Maps API v2] Re: Auto Navigate with Zoom-in and Zoom-out Google Maps
> Thanks for your replies gentlemen. I have managed to auto navigate my
> map. but for some reason map is moving in a loop and it does not stop.
I'm not sure why that comes as a suprise ; it is doing what you told
it.
You set up a listener for a map move event.
The listener triggers a map move.
It's an infinite loop.
> How do I stop it from moving after 90 seconds so that I can execute
> another function such as panTo or direction.
Write some code to do that.
You could use a timer to remove the listener after 90 seconds.
Or you might have a flag, that you set when you want to start moving
and unset after a time. The move code would check the flag state
before action.
Use of timers is something you'll find in many javascript tutorials
and nothing to do with Maps API.
--
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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home