mapModel.addFeatureSelectionHandler(new MapWidgetFeatureSelectionHandler(this));
graphics.setFallbackController(new PanController(this));
// Painter registration:
painterVisitor.registerPainter(new CirclePainter());
painterVisitor.registerPainter(new RectanglePainter());
painterVisitor.registerPainter(new TextPainter());
painterVisitor.registerPainter(new GeometryPainter());
painterVisitor.registerPainter(new ImagePainter());
painterVisitor.registerPainter(new MapModelPainter(this));
painterVisitor.registerPainter(new RasterLayerPainter(this));