Skip to content

Widgets

Rodrigo E. Principe edited this page Nov 12, 2018 · 6 revisions

widgets module

Custom widgets for the ui

To use it:

var widgets = require('users/fitoprincipe/geetools:widgets')

ClosePanel(options)

A Panel with an X button for "closing" it. To make it work you must add it to another Panel or Map with its method addTo or insertTo, otherwise it will not be able to close it. Parameters are similar to ui.Panel. The difference is that it has a parameter inner_style to set the style for the inner Panel, like backgroundColor or border. To close the panel using another widget it has a close method.

https://code.earthengine.google.com/4d88580738ffed17af5c29a06f27f473

Clone this wiki locally