I am not sure about the 'why'. searching on the Google-Maps-API group
may reveal some insight.
One workaround would be to delay the click action with a short
duration timer, that is canceled by a subsequent double click event
firing.
some pseudocode:
Timer delayClickTimer;
// code for click
void onClick(MapClickEvent e) {
if (delayClickTimer) { return; }
delayClickTimer = new Timer() {
public void run () {
delayClickTimer = null;
// do single click stuff
}
};
delayClickTimer.schedule(1000); // 1 sec delay
}
// code for double click
void onDoubleClick(MapDoubleClickEvent e) {
if (delayClickTimer) {
delayClickTimer.cancel();
delayClickTimer = null;
}
// do double click stuff
}
Keep in mind that double clicking is bound by default to zooming on
the map, so you will be potentially losing that behavior if you choose
to use double click for one of your application's actions.
--
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/