layout.addMember(map);
return layout;
}
private DataSource getGeocoderSelectDataSource() {
DataSource dataSource = new DataSource();
dataSource.setClientOnly(true);
DataSourceField label = new DataSourceTextField(FIELD_LABEL);
DataSourceField regex = new DataSourceTextField(FIELD_REGEX);
dataSource.setFields(label, regex);
Record record;
record = new Record();
record.setAttribute(FIELD_LABEL, "all");
record.setAttribute(FIELD_REGEX, ".*");
dataSource.addData(record);
record = new Record();
record.setAttribute(FIELD_LABEL, "Yahoo! PlaceFinder");
record.setAttribute(FIELD_REGEX, "yahoo");
dataSource.addData(record);
record = new Record();
record.setAttribute(FIELD_LABEL, "GeoNames");
record.setAttribute(FIELD_REGEX, "geonames");
dataSource.addData(record);
record = new Record();
record.setAttribute(FIELD_LABEL, "offline");
record.setAttribute(FIELD_REGEX, "offline");
dataSource.addData(record);
return dataSource;
}