ui.Map.Layer.setOpacity
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Legt die Deckkraft der Ebene fest.
Gibt diese Karten-Ebene zurück.
Nutzung | Ausgabe |
---|
Layer.setOpacity(opacity) | ui.Map.AbstractLayer |
Argument | Typ | Details |
---|
So gehts: ui.map.abstractlayer | ui.Map.AbstractLayer | Die ui.Map.AbstractLayer-Instanz. |
opacity | Nummer, optional | Die Deckkraft der Ebene, dargestellt als Zahl zwischen 0 und 1. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\u003cp\u003eSets the opacity of the specified map layer, with a value between 0 and 1 representing transparent and opaque, respectively.\u003c/p\u003e\n"],["\u003cp\u003eReturns the \u003ccode\u003eui.Map.AbstractLayer\u003c/code\u003e instance, allowing for method chaining.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetOpacity()\u003c/code\u003e method is called on a \u003ccode\u003eui.Map.AbstractLayer\u003c/code\u003e object and optionally accepts a numerical opacity value.\u003c/p\u003e\n"]]],[],null,["# ui.Map.Layer.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| Layer.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. |"]]