ee.data.getMapId
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
קבלת מזהה מפה לנכס נתון
מחזירה את תוצאות הקריאה mapId, שאפשר להעביר אותן אל ee.data.getTileUrl או אל ui.Map.addLayer. ערך Null אם צוינה שיחה חוזרת.
שימוש | החזרות |
---|
ee.data.getMapId(params, callback) | RawMapId |
ארגומנט | סוג | פרטים |
---|
params | ImageVisualizationParameters | פרמטרים של התצוגה החזותית כאובייקט JavaScript (בצד הלקוח). לתמונות ולאוספי תמונות:
image (מחרוזת JSON) התמונה לעיבוד. |
version (מספר) מספר הגרסה של התמונה (או הגרסה האחרונה). |
bands (מחרוזות מופרדות בפסיקים) רשימה מופרדת בפסיקים של שמות פס שימופו ל-RGB. |
min (מספרים מופרדים בפסיקים) ערך (או ערך אחד לכל פס) למיפוי ל-00. |
max (מספרים מופרדים בפסיקים) ערך (או ערך אחד לכל פס) למיפוי ל-FF. |
gain (מספרים מופרדים בפסיקים) הגברה (או אחת לכל פס) למיפוי ל-00-FF. |
bias (מספרים מופרדים בפסיקים) היסט (או היסט אחד לכל פס) למיפוי ל-00-FF. |
gamma (מספרים מופרדים בפסיקים) גורם תיקון גמא (או אחד לכל פס). |
palette (מחרוזות מופרדות בפסיקים) רשימה של מחרוזות צבע בסגנון CSS (תצוגות מקדימות של פס יחיד בלבד). |
opacity (מספר) מספר בין 0 ל-1 שקובע את רמת השקיפות. |
format (string) הערך יכול להיות jpg או png. |
|
callback | פונקציה, אופציונלי | קריאה חוזרת אופציונלית. אם לא מספקים את הערך הזה, השיחה מתבצעת באופן סינכרוני. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003e\u003ccode\u003eee.data.getMapId\u003c/code\u003e retrieves the map ID of a given Earth Engine asset, which can be used to display the asset on a map.\u003c/p\u003e\n"],["\u003cp\u003eThe function requires visualization parameters, including the image, bands, and visualization settings like min, max, and palette.\u003c/p\u003e\n"],["\u003cp\u003eIt can be used synchronously or asynchronously with a callback function.\u003c/p\u003e\n"],["\u003cp\u003eThe returned map ID can be utilized with \u003ccode\u003eee.data.getTileUrl\u003c/code\u003e or \u003ccode\u003eui.Map.addLayer\u003c/code\u003e for further map interactions.\u003c/p\u003e\n"]]],[],null,["# ee.data.getMapId\n\n\u003cbr /\u003e\n\nGet a Map ID for a given asset\n\n\u003cbr /\u003e\n\nReturns the mapId call results, which may be passed to ee.data.getTileUrl or ui.Map.addLayer. Null if a callback is specified.\n\n| Usage | Returns |\n|------------------------------------------|----------|\n| `ee.data.getMapId(params, `*callback*`)` | RawMapId |\n\n| Argument | Type | Details |\n|------------|------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `params` | ImageVisualizationParameters | The visualization parameters as a (client-side) JavaScript object. For Images and ImageCollections: |----------------------------------------------------------------------------------------------------| | ` image ` (JSON string) The image to render. | | ` version ` (number) Version number of image (or latest). | | ` bands ` (comma-separated strings) Comma-delimited list of band names to be mapped to RGB. | | ` min ` (comma-separated numbers) Value (or one per band) to map onto 00. | | ` max ` (comma-separated numbers) Value (or one per band) to map onto FF. | | ` gain ` (comma-separated numbers) Gain (or one per band) to map onto 00-FF. | | ` bias ` (comma-separated numbers) Offset (or one per band) to map onto 00-FF. | | ` gamma ` (comma-separated numbers) Gamma correction factor (or one per band). | | ` palette ` (comma-separated strings) List of CSS-style color strings (single-band previews only). | | ` opacity ` (number) a number between 0 and 1 for opacity. | | ` format ` (string) Either \"jpg\" or \"png\". | |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]