Tutorial 16
User Interface and Apps
// Make a button widget.
var button = ui.Button('Click me!');
// Set a callback function to run when the
// button is clicked.
button.onClick(function() {
print('Hello, world!');
});
// Display the button in the console.
print(button);
Example app show in the video can be found here.
More information on user interface can be found on official Google Earth Engine Website: