Thanks eric, I figured out my problem creating a new custom "marker", implementing the Overlay interface. My marker substantially draw an Image on the map pane. The Image class handles the click event and passes to the event handler a ClickEvent object that is capable to catch the "alt key down" in this manner:
event.getNativeEvent().getAltKey() Bye Marco On 13 Dic, 14:52, Eric Ayers <[email protected]> wrote: > Hi Marco, > > These listeners are wrappers for the click events from the underlying > JavaScript Maps API. > > http://code.google.com/apis/maps/documentation/reference.html#GMap2 > > <http://code.google.com/apis/maps/documentation/reference.html#GMap2>http://code.google.com/apis/maps/documentation/reference.html#GMarker > > I don't see a direct way to get the modifier key information from here, but > you might find some more help searching the Google Maps API group. Make > sure you read their posting policies before posting. > > > > On Sat, Dec 12, 2009 at 5:17 AM, Marco Visonà <[email protected]> wrote: > > Hello > > I'm developing a custom map, using GWT and the Google Map API library > > for GWT. > > I would like to verify if the user holds down the Alt key when he > > click on a marker in a Google Map. > > My idea was the following: > > > Marker m = ... > > > m.addMarkerClickHandler(new MarkerClickHandler() { > > @Override > > public void onClick(MarkerClickEvent event) { > > if(<is alt key down>) > > <do some stuff...> > > } > > }); > > > I handle the click event on a marker m, and I'd like to check if the > > alt key is hold. I thought there would be a method like > > event.getNativeEvent().getAltKey() in the MarkerClickEvent, similarly > > to the ClickEvent handled by the Button objects, but it doesn't seems > > so. > > > Is there any solution? > > Thanks in advance > > > Marco > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-web-toolkit%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > Eric Z. Ayers > Google Web Toolkit, Atlanta, GA USA -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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-web-toolkit?hl=en.
