ui.Map.FeatureViewLayer.setOpacity
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इससे लेयर की ओपैसिटी सेट की जाती है.
यह मैप लेयर दिखाता है.
इस्तेमाल | रिटर्न |
---|
FeatureViewLayer.setOpacity(opacity) | ui.Map.AbstractLayer |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: ui.map.abstractlayer | ui.Map.AbstractLayer | ui.Map.AbstractLayer इंस्टेंस. |
opacity | नंबर, ज़रूरी नहीं | लेयर की ओपैसिटी को 0 और 1 के बीच की संख्या के तौर पर दिखाया जाता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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\u003eSets the opacity of the FeatureViewLayer, with a value between 0 and 1 representing transparency.\u003c/p\u003e\n"],["\u003cp\u003eReturns the ui.Map.AbstractLayer instance after setting the opacity.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetOpacity()\u003c/code\u003e method is accessed through a FeatureViewLayer object.\u003c/p\u003e\n"]]],[],null,["# ui.Map.FeatureViewLayer.setOpacity\n\n\u003cbr /\u003e\n\nSets the opacity of the layer.\n\n\u003cbr /\u003e\n\nReturns this map layer.\n\n| Usage | Returns |\n|--------------------------------------------|----------------------|\n| FeatureViewLayer.setOpacity`(`*opacity*`)` | ui.Map.AbstractLayer |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|--------------------------------------------------------------|\n| this: `ui.map.abstractlayer` | ui.Map.AbstractLayer | The ui.Map.AbstractLayer instance. |\n| `opacity` | Number, optional | The layer's opacity represented as a number between 0 and 1. |"]]