if (clickListeners == null) {
clickListeners = new ListenerCollection<MapClickListener>();
}
JavaScriptObject clickEventHandles[] = {
EventImpl.impl.addListener(jsoPeer, MapEvent.CLICK,
new OverlayLatLngCallback() {
@Override
public void callback(Overlay overlay, LatLng latlng) {
listener.onClick(MapWidget.this, overlay, latlng);
}
}),
EventImpl.impl.addListener(jsoPeer, MapEvent.DBLCLICK,
new OverlayLatLngCallback() {
@Override
public void callback(Overlay overlay, LatLng latlng) {
listener.onDoubleClick(MapWidget.this, overlay, latlng);
}
}),