mapLayout.setShowEdges(true);
mapLayout.setShowResizeBar(true);
// Map with ID editLineLayerMap is defined in the XML configuration.
final MapWidget map = new MapWidget("mapEditMultiLine", "gwt-samples");
map.getMapModel().addMapModelHandler(new MapModelHandler() {
// When the map is initialized: select the cities layer - so that new features are created in this layer:
public void onMapModelChange(MapModelEvent event) {
map.getMapModel().selectLayer(map.getMapModel().getLayer("editableRoadtrl020LayerML"));
map.registerMapAddon(new GoogleAddon("google", map, GoogleAddon.MapType.SATELLITE, false));