当前位置:网站首页>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
边栏推荐
- Centripetalnet: more reasonable corner matching, improved cornernet | CVPR 2020 in many aspects
- Adobe Photoshop using the box selection tool for selection tutorial
- Base64 decoding method three ways for non professionals
- Reliable remote code execution (1)
- Can text pictures be converted to word? How to extract text from pictures
- Network monitoring: active troubleshooting becomes simple
- How to use data analysis tools to deal with emergencies in retail industry
- A fault record of misoperation dhclient script
- 服乔布斯不服库克,苹果传奇设计团队解散内幕曝光
- “一个优秀程序员可抵五个普通程序员!”
猜你喜欢
随机推荐
How to improve the quality of Baidu keyword?
Preparation for a series of courses on WordPress applet generation
Why does the virtual machine Ping the host but not the virtual machine
Concise tutorial | making cartoon heat map with PPT - EFP graph?!
Install wpr Exe command
Does the depth system work?
Mongodb index operation
MYSQL_ Elaborate on database data types
Using the collaboration database query of Poole in laravel5.6
《opencv学习笔记》-- 感兴趣区域(ROI)、图像混合
qt -- QTabWidget 中支持拖拽TabBar项
5W1H talk about open source - what is open source?
System design: load balancing
[graduation season · attacking technology Er] three turns around the tree, what branch can we rely on?
2D 照片变身 3D 模型,来看英伟达的 AI 新“魔法”!
[latest in the whole network] how to start the opentsdb source code in the local ide run
Google ranging for PHP wechat development
Why are some old SEO methods still effective?
MYSQL_精讲数据库数据类型
TP-LINK 1208路由器教程(2)









