野仙生活网

野仙生活网

Google Earth Engine APP(GEE)——用一个选择器选择不同城市的应用

民生 0

我们很多时候在进行应用制作的时候,都会用到选择器用于添加不同的城市,从而进一步选择不同的区域进行分析,本文就将准备一个包含有城市的矢量数据,按照名字进行筛选,最终展示不同城市的所在范围,从而实现简单的select选择器的调用。本文最主要的就是这个回调函数。

具体的属性信息

 

函数:

aggregate_array(property)

Aggregates over a given property of the objects in a collection, calculating a list of all the values of the selected property.

按照属性选择并转换称列表形式

Arguments:

this:collection (FeatureCollection):

The collection to aggregate over.

property (String):

The property to use from each element of the collection.

Returns: List

ui.Select(items, placeholder, value, onChange, disabled, style)
A printable select menu with a callback.

带有回调的可打印选择菜