use of org.activityinfo.ui.client.component.report.editor.map.NewLayerWizard in project activityinfo by bedatadriven.
the class MapTemplate method createElement.
@Override
public void createElement(final AsyncCallback<ReportElement> callback) {
final NewLayerWizard wizard = new NewLayerWizard(dispatcher, locator);
WizardDialog dialog = new WizardDialog(wizard);
dialog.setHeadingText(I18N.CONSTANTS.newMap());
dialog.show(new WizardCallback() {
@Override
public void onFinished() {
MapReportElement map = new MapReportElement();
map.addLayer(wizard.createLayer());
callback.onSuccess(map);
}
});
}
Aggregations