本博客主要的目的是进行UI基本界面的设计用于图层加载,主要是影像的加载和时间选择器以及两个按钮的选择,其中还可以按钮隐藏整个面板。这里有几个函数是时间滑块和复选框用于时间选择。这里通过点击空间可以隐藏面板,所以我们可以通过按钮中的style进行设定,这个函数每一个控件中都有显示。
ui.DateSlider(start, end, value, period, onChange, disabled, style)
A draggable target that ranges linearly between two dates. The date slider can be configured to display dates of various interval sizes, including day, 8-day, and year. The value of the slider is displayed as a label alongside it.
Arguments:
start (Date|Number|String, optional):
The start date, as a UTC timestamp, date string, or ee.Date. Defaults to one week ago.
end (Date|Number|String, optional):
The end date, as a UTC timestamp, date string, or ee.Date. Defaults to today.
value (Date|Number|String, optional):
The initial value. The value is an array consisting