graphics.addGraphicsReadyHandler(new RenderMapOnResizeHandler());
// adding the graphics here causes problems when embedding in HTML !
// addChild(graphics);
setZoomOnScrollEnabled(true);
mapModel.getFeatureEditor().addEditingHandler(new EditingHandler() {
public void onEditingChange(EditingEvent event) {
FeatureTransaction ft = mapModel.getFeatureEditor().getFeatureTransaction();
if (ft != null) {
if (event.getEditingEventType().equals(EditingEventType.START_EDITING)) {