本文的主要内容是建立一个图例在地图上,然后可以查看影像的最大最小值范围,并且影像值在图例的展示是连续分布的。这里需要引入外部函数,我们可以看一下,具体的内容可以通过范围链接进入:Creating a gradient legend – Open Geo Blog
其它的必备函数:
ui.Panel(widgets, layout, style)
A widget that can hold other widgets. Use panels to construct complex combinations of nested widgets.
Panels can be added to ui.root but not printed to the console with print().
Arguments:
widgets (List<ui.Widget>|ui.Widget, optional):
The list of widgets or a single widget to add to the panel. Defaults to an empty array.
layout (String|ui.Panel.Layout, optional):
The layout to use for this panel. If a string is passed in, it’s taken as a shortcut to the layout const