public void addMarkerClickListener(final MarkerClickListener listener) {
if (clickListeners == null) {
clickListeners = new ListenerCollection<MarkerClickListener>();
}
JavaScriptObject[] clickEventHandles = {
EVENT_IMPL.addListenerVoid(jsoPeer, MapEvent.CLICK, new VoidCallback() {
@Override
public void callback() {
listener.onClick(Marker.this);
}
}),
EVENT_IMPL.addListenerVoid(jsoPeer, MapEvent.DBLCLICK,
new VoidCallback() {
@Override
public void callback() {
listener.onDoubleClick(Marker.this);
}
})};