当前位置:网站首页>Google Earth engine (GEE) - how to add a legend in the map panel
Google Earth engine (GEE) - how to add a legend in the map panel
2022-06-24 11:19:00 【The star light blog in 2021 cloud computing top3】
Here we will use a familiar knowledge to add the legend to the panel , In this way, we can better identify what kind of ground objects are in the process of online map reading :
The functions required here :
ui.Panel(widgets, layout, style)
A widget that can hold other widgets . Use panels to build complex assemblies of nested assemblies .
Panels can be added to ui.root in , But it can't be used. print() Print to console .
Parameters .
widgets (List<ui.Widget>|ui.Widget, optional):
List of components to be added to the panel or individual components . The default is an empty array .
layout (String|ui.Panel.Layout, optional):
The layout to be used for this panel . If you pass in a string , It will be used as a shortcut to the layout constructor of that name . The default is 'flow'.
style (Object, optional):
One allowed CSS Style objects , Its value should be set for this widget . See style() file .
return : ui.Panel
ui.Panel.Layout.flow(direction, wrap)
Return to a layout , The layout places its components in a flow , Whether horizontal or vertical .
By default , Widgets occupy their natural space in a flow layout panel . Set... On an added part " The tensile " Style attribute , To stretch it to fill the available space in the relevant direction .
level 、 vertical 、 both
When more than one widget When stretched , The available space is divided equally between them . A panel is the widget itself , Sure
边栏推荐
- Code is really - omnipotent! Refuse to fight
- What code did the full stack programmer write this month?
- 齐次坐标的理解
- PHP SMS notification + voice broadcast automatic double call
- Act as you like
- math_等比数列求和推导&等幂和差推导/两个n次方数之差/
- Using the collaboration database query of Poole in laravel5.6
- Self cleaning Manual of mining Trojan horse
- How to improve the quality of Baidu keyword?
- Google ranging for PHP wechat development
猜你喜欢

Any and typevar make the automatic completion of IDE better

程序员大部分时间不是写代码,而是。。。

Maui的学习之路 -- 开篇
![[activities this Saturday] NET Day in China](/img/33/c0e8eeb8f673232a7c27bbaf5e713f.jpg)
[activities this Saturday] NET Day in China

Plant growth H5 animation JS special effect

First acquaintance with string+ simple usage (I)

Qt: 判断字符串是否为数字格式

Beauty of script │ VBS introduction interactive practice

PHP SMS notification + voice broadcast automatic double call

Visual presentation of pictures effectively enhances the attraction of large screen
随机推荐
Preparation for a series of courses on WordPress applet generation
使用Process Monitor工具监测进程对注册表和文件的操作
"Adobe international certification" Adobe Photoshop adjusts cropping, rotation and canvas size
齐次坐标的理解
Déplacer Tencent sur le cloud a guéri leur anxiété technologique
Today's sleep quality record 76 points
程序员大部分时间不是写代码,而是。。。
Understanding of homogeneous coordinates
为什么虚拟机ping的通主机,主机ping不通虚拟机
Any and typevar make the automatic completion of IDE better
Multi gate mixture of experts and code implementation
Self service troubleshooting guide for redis connection login problems
I want 18K. Can I pass it?
【毕业季·进击的技术er】绕树三匝,何枝可依?
"One good programmer is worth five ordinary programmers!"
What is wireless WiFi? What are the benefits of wireless WiFi
“一次编写,运行各端”,高通重磅发布 AI 软件栈!
把腾讯搬到云上,治愈了他们的技术焦虑
Lightweight deployment of firefoxsend temporary file sharing service using Tencent cloud
What characteristics should a good design website have?