Google Earth Engine(GEE)——Map.style()让你把光标编程十字线

2021/11/3 11:10:25

本文主要是介绍Google Earth Engine(GEE)——Map.style()让你把光标编程十字线,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

Map.style()

Returns the Map's style ActiveDictionary, which can be modified to update the Map's styles.

In addition to the standard UI API styles listed in the ui.Panel.style() documentation, the Map supports the following custom style option:

- cursor, which can be 'crosshair' or 'hand' (default)

返回地图的样式ActiveDictionary,可以修改它来更新地图的样式。

除了ui.panel.style()文档中列出的标准UI API样式外,地图还支持以下自定义样式选项。

- 光标,可以是 "十字线 "或 "手"(默认)。

No arguments.

Returns: ui.data.ActiveDictionary

代码:

var fCol = ee.FeatureCollection("users/landusers/province");  
var roi = ee.Geometry.Point([116.387928, 40.00649]);  
var sCol = fCol.filterBounds(roi);  
Map.centerObject(roi, 6);  
//这里填充的颜色是空白
var styling = {color: 'blue'


这篇关于Google Earth Engine(GEE)——Map.style()让你把光标编程十字线的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程