if (moveListeners == null) {
moveListeners = new ListenerCollection<MapMoveListener>();
}
JavaScriptObject moveEventHandles[] = {
EventImpl.impl.addListenerVoid(jsoPeer, MapEvent.MOVE,
new VoidCallback() {
@Override
public void callback() {
listener.onMove(MapWidget.this);
}
}),
EventImpl.impl.addListenerVoid(jsoPeer, MapEvent.MOVESTART,
new VoidCallback() {
@Override
public void callback() {
listener.onMoveStart(MapWidget.this);
}
}),
EventImpl.impl.addListenerVoid(jsoPeer, MapEvent.MOVEEND,
new VoidCallback() {
@Override
public void callback() {
listener.onMoveEnd(MapWidget.this);
}
})};