I have a list of features containing two Polygons that belong to a MultiPolygon feature:
var polygon_lst = ee.Feature(MP_feat).geometry().coordinates(); //MP_feat is a MultiPolygon
I want to take every element of this list(two polygons), calculate their corresponding polygon.area() and return the index of the element whose polygon has the maximum area.
I think I need to use reducers at some point but I am not sure how. Any comment on this?