final Toolbar toolbar = new Toolbar(map);
toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);
// add a button in GWT code
toolbar.addModalButton(new ZoomToRectangleModalAction(map));
layout.addMember(toolbar);
layout.addMember(map);
// wait for the map to be loaded and select the 1st layer