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

Reply via email to