final MapWidget map = new MapWidget("mapLegend", "gwt-samples");
map.setController(new PanController(map));
mapLayout.addMember(map);
// Build the LayerTree:
final LayerTree layerTree = new LayerTree(map);
layerTree.setHeight(180);
layerTree.setWidth100();
layerTree.setShowEdges(true);
layerTree.setShowResizeBar(true);
layerTree.setMinHeight(100);
// Add both to the main layout:
mainLayout.addMember(layerTree);
mainLayout.addMember(mapLayout);