I would like to make items/list for ui.Select
out of Feature Collection. I have developed a code, but I am receiving an error: .
var subset = borders.filter(ee.Filter.eq('GID_0', 'UZB'));
var filtered = ee.List(subset.aggregate_array('NAME_1'));
print(filtered);
var provincename_select = ui.Select({
items: filtered,
onChange: function(value) {
var provincename = value;
},
style: {width: '200px'}
});
print(provincename_select);
https://code.earthengine.google.com/f6005af7e1bd5bfe8e8a598fbb749fdd