// Build a map, and set a PanController:
VLayout mapLayout = new VLayout();
mapLayout.setShowEdges(true);
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();