er code here } });
Consult the OpenLayers API documentation at the OpenLayers site to see which objects fire events (e.g. Map, Layer, etc) and which events they fire (e.g. "addlayer" fired by Map).
GWT OpenLayers provides a higher level way to register events through addXxxListener methods, which are easier to use, and which provide type-safety. However, these may not be implemented for all events in OpenLayers. The addXxxListener methods are methods on the Object firing the event:
map.addMapMoveListener(new MapMoveListener() { public void onMapMove(MapMoveEvent eventObject) { //handler code here } })
@author Erdem Gunay
@author Edwin Commandeur