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'