* @author Pieter De Graef
*/
private class MyMapInitializationHandler implements MapInitializationHandler {
public void onMapInitialized(MapInitializationEvent event) {
ScreenContainer container = mapPresenter.addScreenContainer();
rectangle = new Rectangle(60, 40, 200, 80);
rectangle.setFillColor("#CC9900");
rectangle.setFillOpacity(0.4);
text = new Text(70, 60, "Drag me...");
text.setFontFamily("Arial");
text.setFontSize(16);
text.setStrokeOpacity(0);
text.setFillColor("#000000");
container.add(text);
container.add(rectangle);
DragHandler dragHandler = new DragHandler();
rectangle.addMouseDownHandler(dragHandler);
rectangle.addMouseUpHandler(dragHandler);
rectangle.addMouseMoveHandler(dragHandler);