ee.Feature.getMap
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह एक ज़रूरी फ़ंक्शन है, जो मैप आईडी और वैकल्पिक टोकन दिखाता है. यह मैप ओवरले जनरेट करने के लिए सही है.
यह एक ऐसा ऑब्जेक्ट दिखाता है जिसे ee.data.getTileUrl या ui.Map.addLayer को पास किया जा सकता है. इसमें एक अतिरिक्त 'image' फ़ील्ड भी शामिल होता है. इसमें इस सुविधा को शामिल करने वाला FeatureCollection रैप करने वाली Collection.draw इमेज होती है. अगर कॉलबैक तय किया गया था, तो इसकी वैल्यू तय नहीं की जाती.
इस्तेमाल | रिटर्न |
---|
Feature.getMap(visParams, callback) | MapId|Object |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: feature | सुविधा | सुविधा का इंस्टेंस. |
visParams | ऑब्जेक्ट, ज़रूरी नहीं है | विज़ुअलाइज़ेशन पैरामीटर. फ़िलहाल, सिर्फ़ एक पैरामीटर, 'color' का इस्तेमाल किया जा रहा है. इसमें आरजीबी कलर स्ट्रिंग शामिल है. अगर vis_params शून्य है, तो काले ("000000") रंग का इस्तेमाल किया जाता है. |
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\u003eFeature.getMap\u003c/code\u003e generates a map ID and an optional token for creating map overlays.\u003c/p\u003e\n"],["\u003cp\u003eIt returns data compatible with \u003ccode\u003eee.data.getTileUrl\u003c/code\u003e and \u003ccode\u003eui.Map.addLayer\u003c/code\u003e for visualization.\u003c/p\u003e\n"],["\u003cp\u003eThe function accepts visualization parameters, including color, to customize the map overlay's appearance.\u003c/p\u003e\n"],["\u003cp\u003eUsers have the option to provide a callback function for asynchronous operations.\u003c/p\u003e\n"]]],[],null,["# ee.Feature.getMap\n\n\u003cbr /\u003e\n\nAn imperative function that returns a map ID and optional token, suitable for generating a Map overlay.\n\n\u003cbr /\u003e\n\nReturns an object which may be passed to ee.data.getTileUrl or ui.Map.addLayer, including an additional 'image' field, containing a Collection.draw image wrapping a FeatureCollection containing this feature. Undefined if a callback was specified.\n\n| Usage | Returns |\n|------------------------------------------------|---------------|\n| Feature.getMap`(`*visParams* `, `*callback*`)` | MapId\\|Object |\n\n| Argument | Type | Details |\n|-----------------|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `feature` | Feature | The Feature instance. |\n| `visParams` | Object, optional | The visualization parameters. Currently only one parameter, 'color', containing an RGB color string is user. If vis_params is null, black (\"000000\") is used. |\n| `callback` | Function, optional | An async callback. |"]]