How can I add multiple tabbed panels to a Google Earth Engine app?

I don't see an option for this in the docs.

My app has two components, data visualisation, and some options to download points for ground truthing. All the components together means users would have to scroll up and down quite a bit in the panel, but having multiple tabbed panels would solve this problem.


There are no tabs in the UI interface, but you can do split panels, which might help.

var panel1 = ui.Panel([ui.Label("This is panel 1")])
var panel2 = ui.Panel([ui.Label("This is panel 2")])
var split = ui.SplitPanel(panel1, panel2, "vertical")
ui.root.insert(0, split)


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.