// Install a loading screen
// This only works if the application initially shows a map with at
// least 1 vector layer:
LoadingScreen loadScreen = new LoadingScreen(map, "Simple GWT application using Geomajas "
+ Geomajas.getVersion());
loadScreen.draw();
map.getMapModel().addMapModelHandler(new MapModelHandler() {
public void onMapModelChange(MapModelEvent event) {
VectorLayer layer = map.getMapModel().getVectorLayer("clientLayerCountries");