The "zoom" event was old api. You want the "zoomend" event which
works for GMap2. For example:
GEvent.addListener(map,'zoomend',function(){
alert("zoomed");
});
On Aug 14, 1:30 am, eena <[EMAIL PROTECTED]> wrote:
> Hi ,
> Iam working on a Gmap application where in map refreshes every 3
> minutes,
> I need to retain the zoom after refresh
> now it it goes to initial zoom setting ,instead i need to retain Last
> Zoom level.
> In the map i have enabled Doubleclick zoom,scrollwheel zoom and Zoom
> control icons
> for capturing Zoom events i tried
> GEvent.addListener(map,"zoom",alert('new zoom '+map.getZoom())
> but iam unable to capture the zoom changes
> Pls suggest,
> Eena
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---