if (mouseListeners == null) {
mouseListeners = new ListenerCollection<MapMouseListener>();
}
JavaScriptObject mouseEventHandles[] = {
EventImpl.impl.addListener(jsoPeer, MapEvent.MOUSEOVER,
new LatLngCallback() {
@Override
public void callback(LatLng latlng) {
listener.onMouseOver(MapWidget.this, latlng);
}
}),
EventImpl.impl.addListener(jsoPeer, MapEvent.MOUSEOUT,
new LatLngCallback() {
@Override
public void callback(LatLng latlng) {
listener.onMouseOut(MapWidget.this, latlng);
}
}),
EventImpl.impl.addListener(jsoPeer, MapEvent.MOUSEMOVE,
new LatLngCallback() {
@Override
public void callback(LatLng latlng) {
listener.onMouseMove(MapWidget.this, latlng);
}
})};