ee.data.getMapId
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी ऐसेट के लिए मैप आईडी पाना
यह फ़ंक्शन, mapId कॉल के नतीजे दिखाता है. इन्हें ee.data.getTileUrl या ui.Map.addLayer को पास किया जा सकता है. अगर कॉलबैक तय किया गया है, तो इसकी वैल्यू शून्य होती है.
इस्तेमाल | रिटर्न |
---|
ee.data.getMapId(params, callback) | RawMapId |
आर्ग्यूमेंट | टाइप | विवरण |
---|
params | ImageVisualizationParameters | विज़ुअलाइज़ेशन पैरामीटर, क्लाइंट-साइड JavaScript ऑब्जेक्ट के तौर पर. Images और ImageCollections के लिए:
image (JSON स्ट्रिंग) रेंडर करने के लिए इमेज. |
version (number) इमेज का वर्शन नंबर (या नया वर्शन). |
bands (कॉमा लगाकर अलग की गई स्ट्रिंग) आरजीबी से मैप किए जाने वाले बैंड के नामों की कॉमा लगाकर अलग की गई सूची. |
min (कॉमा लगाकर अलग की गई संख्याएं) 00 पर मैप करने के लिए वैल्यू (या हर बैंड के लिए एक वैल्यू). |
max (कॉमा लगाकर अलग की गई संख्याएं) FF पर मैप करने के लिए वैल्यू (या हर बैंड के लिए एक वैल्यू). |
gain (कॉमा लगाकर अलग किए गए नंबर) 00-FF पर मैप करने के लिए, हर बैंड के लिए एक या उससे ज़्यादा गेन. |
bias (कॉमा लगाकर अलग किए गए नंबर) 00-FF पर मैप करने के लिए ऑफ़सेट (या हर बैंड के लिए एक). |
gamma (कॉमा लगाकर अलग की गई संख्याएं) गामा करेक्शन फ़ैक्टर (या हर बैंड के लिए एक). |
palette (कॉमा लगाकर अलग की गई स्ट्रिंग) सीएसएस-स्टाइल वाली कलर स्ट्रिंग की सूची (सिर्फ़ सिंगल-बैंड प्रीव्यू). |
opacity (संख्या) ओपैसिटी के लिए 0 और 1 के बीच की कोई संख्या. |
format (string) "jpg" या "png" में से कोई एक. |
|
callback | फ़ंक्शन, ज़रूरी नहीं है | वैकल्पिक कॉलबैक. अगर यह पैरामीटर नहीं दिया जाता है, तो कॉल सिंक्रोनस तरीके से किया जाता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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. |"]]