I am trying to create a split map in GEE which allows me to compare 2 datasets stored as imagecollections, which both have 2 bands and 1 image for each year. It should work with this selection dropdown menu:
Unfortunately I have not been abled to make the band and year selection work properly, because it depends on which dataset is chosen. Is there some way to do this which is comparable to this idea that works, or a different way?:
var images = {
'Dataset1': ee.ImageCollection([Set1_2013, Set1_2014...]),
'Dataset2': ee.ImageCollection([Set2_2013, Set2_2014,...])};
var band = {
'band_1': images.select('b1').visualize({min: 0, max: 830, palette: col_palette}),
'band_2': images.select('b2').visualize({min: 0, max: 830, palette: col_palette})}
var year = {
'2013': images.filter(ee.Filter('2013-01-01', '2013-12-31')),
'2014': images.filter(ee.Filter('2014-01-01', '2014-12-31'))}