相比于上一次我们分别添加单独分开的图例适用于土地分类,这次我们要添加一个连续的图例,这里需要用到我们获取影像的经纬度,并将经纬度进行分割然。随后我们就就需要注意我们添加图例和顺序,先添加最大值然后添加连续图例,最后添加最小值标签。
函数:
ee.Image.pixelLonLat()
Creates an image with two bands named 'longitude' and 'latitude', containing the longitude and latitude at each pixel, in degrees.
No arguments.
Returns: Image
ui.Thumbnail(image, params, onClick, style)
A fixed-size thumbnail image generated asynchronously from an ee.Image.
Arguments:
image (Image, optional):
The ee.Image from which to generate the thumbnail. Defaults to an empty ee.Image.
params (Object, optional):
扫描二维码关注公众号,回复:
14871800 查看本文章
F