ui.Map.Layer
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
שכבה שנוצרת מאובייקט Earth Engine להצגה ב-ui.Map.
שימוש | החזרות |
---|
ui.Map.Layer(eeObject, visParams, name, shown, opacity) | ui.Map.Layer |
ארגומנט | סוג | פרטים |
---|
eeObject | Collection|Feature|Image, אופציונלי | האובייקט שרוצים להוסיף למפה. ברירת המחדל היא ee.Image ריק. |
visParams | FeatureVisualizationParameters|ImageVisualizationParameters, אופציונלי | פרמטרים של התצוגה החזותית. פרטים נוספים זמינים במסמכי התיעוד של ee.data.getMapId(). |
name | מחרוזת, אופציונלי | שם השכבה. |
shown | בוליאני, אופציונלי | האם השכבה מוצגת בהתחלה. ברירת המחדל היא True. |
opacity | מספר, אופציונלי | האטימות של השכבה, שמיוצגת כמספר בין 0 ל-1. ברירת המחדל היא 1. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eCreates a map layer from an Earth Engine object (like Image, Feature, or Collection) for display on a ui.Map.\u003c/p\u003e\n"],["\u003cp\u003eCustomizable with visualization parameters, name, visibility, and opacity.\u003c/p\u003e\n"],["\u003cp\u003eDefaults to an empty ee.Image if no Earth Engine object is provided.\u003c/p\u003e\n"]]],["`ui.Map.Layer` creates a display layer from an Earth Engine object. It takes an `eeObject` (Collection, Feature, or Image), optional visualization parameters (`visParams`), a layer `name`, a `shown` boolean (defaulting to true), and an `opacity` number between 0 and 1 (defaulting to 1). The `eeObject` defaults to an empty image. It returns a `ui.Map.Layer` object which is added to the map.\n"],null,["# ui.Map.Layer\n\n\u003cbr /\u003e\n\nA layer generated from an Earth Engine object for display on a ui.Map.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------------|--------------|\n| `ui.Map.Layer(`*eeObject* `, `*visParams* `, `*name* `, `*shown* `, `*opacity*`)` | ui.Map.Layer |\n\n| Argument | Type | Details |\n|-------------|------------------------------------------------------------------------|-----------------------------------------------------------------------------|\n| `eeObject` | Collection\\|Feature\\|Image, optional | The object to add to the map. Defaults to an empty ee.Image. |\n| `visParams` | FeatureVisualizationParameters\\|ImageVisualizationParameters, optional | The visualization parameters. See ee.data.getMapId() docs. |\n| `name` | String, optional | The name of the layer. |\n| `shown` | Boolean, optional | Whether the layer is initially shown. Defaults to true. |\n| `opacity` | Number, optional | The layer's opacity represented as a number between 0 and 1. Defaults to 1. |"]]