Hi benny- I checked it out, it does seem to be a bug. I've shared it with the team.
Please use map.getZoom() for now, that's always correct. - pamela On Thu, Mar 5, 2009 at 7:02 AM, bennyhill <[email protected]> wrote: > > I have a map with the initial zoom at 2. I have an event handler that > traces the event.zoomLevel when a MapZoomEvent.ZOOM_CHANGED is fired. > Now when I click the the plus sign on the zoom control the first trace > is 2, shouldn't it be 3 since it increased the initial zoom by 1? > Also if you click the plus sign again it goes to three, the click the > minus sign and it goes to 4. What? Should the minus sign make it go > back to 2? The zoomLevel value is very unreliable, unless I am doing > something wrong. > > Partial code: > > function onMapReady(event:Event):void > { > map.setCenter(new LatLng(25,10), 2, MapType.NORMAL_MAP_TYPE); > map.addControl(new ZoomControl()); > map.addEventListener(MapZoomEvent.ZOOM_CHANGED, handleZoomChange); > } > > function handleZoomChange(event:MapZoomEvent):void > { > trace(event.zoomLevel); > } > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
