Niawei, > Does not seem to work consistently
I suspect the issue is keyboard focus. Google's keyboard controls suffer the same fate: if the map doesn't have keyboard focus, the keyboard controls simply don't work. If so, please click the map once to give it keyboard focus, and try again. In this regard, and unlike the JS map, the Flash map sure appears to be a second-class citizen. > As far I know, the core API already has most keyboard zoom/pan You're right, but Google's controls require two hands to operate. DragZoomer is designed for people who have one hand on the keyboard and the other on the mouse. Another feature unique to DragZoomer is Shift + Q, which allows you to go back in history. It's undocumented, but DragZoomer also support an optional left-handed mode, whereby the user can manipulate the map via right hand keyboard movements (zoom = Shift + ? instead of Shift + Z) in conjunction with the right Shift key. Seems like I need to write some user documentation. On Aug 19, 6:44 am, Nianwei <[email protected]> wrote: > Does not seem to work consistently (Actually I did not get it work at > all even follow the instruction, I am using FF2 + Flash 10). Looks to > me some key event handler is not done correctly. Mouse move and key up/ > down status combination has different variations and must be all > considered to make the tool fault tolerant and allow user's different > action sequence. > As far I know, the core API already has most keyboard zoom/pan > embedded, with plus/minus and arrow keys. > > On Aug 18, 2:29 pm, Kevin Macdonald <[email protected]> > wrote: > > > Hi, > > > I recently wrote DragZoomer, a control for Google Maps For Flash, that > > adds a "pan & zoom" control to a Google Map, that for certain use > > cases, allows the user to move around on the map more efficiently than > > via the map's built-in controls. > > > Other built-in features include > > "Shift + Z" = zoom in > > "Shift + Q" = go back to previous view > > "Shift + A or S" = go left or right > > "Shift + D or X" = go up or down > > > You can view a demo of DragZoomer here: > > >http://spatialdatabox.com/drag-zoomer/drag-zoomer.html > > > If this functionality hasn't been implemented by another library, I > > plan to add the library to the Google Map library for all to use. > > > If you see any bugs in the demo implementation, please let me know. > > > More info here: > > > ================================= > > With Google's built-in controls, multiple "pan & zoom" actions require > > the user to move the mouse back-and-forth between the ZoomControl, > > which lies in the top-left edge of the map, and somewhere else on the > > map. For an eastward pan & zoom, the mouse must travel back-and-forth > > across the full width of the map. > > > Although this method of interaction was revolutionary for its time, it > > alas is inefficient to perform, especially when each back-and-forth > > transition occurs on a full-screen map in a wide-screen display. > > > For use-cases that require the user to constantly "pan & zoom", such > > as when searching for or editting map content, the built-in controls > > pose an intrusion into an efficient workflow. > > > With DragZoomer enabled, the user can use the Shift key and mouse to > > draw a rectangle on the map. When the user releases the Shift key, the > > map automatically performs both "pan & zoom" actions to display only > > the area of the map that lies within the rectangle. The smaller the > > rectangle, the more the map will be zoomed. > > ================================= --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
