ui.Map.GeometryLayer.setColor
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Ustawia kolor CSS kształtów w warstwie.
Zwraca tę warstwę mapy.
Wykorzystanie | Zwroty |
---|
GeometryLayer.setColor(color) | ui.Map.GeometryLayer |
Argument | Typ | Szczegóły |
---|
to: ui.map.geometrylayer | ui.Map.GeometryLayer | Instancja ui.Map.GeometryLayer. |
color | Ciąg znaków | Kolor warstwy. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eDefines the color of shapes within a GeometryLayer on the map.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetColor()\u003c/code\u003e method accepts a color string as input and applies it to the layer's shapes.\u003c/p\u003e\n"],["\u003cp\u003eIt returns the \u003ccode\u003eui.Map.GeometryLayer\u003c/code\u003e instance, allowing for method chaining.\u003c/p\u003e\n"]]],["The `GeometryLayer.setColor(color)` method modifies the color of shapes within a map layer. It accepts a `color` argument, which is a string representing the desired color. The method's primary action is to update the CSS color of the layer's shapes. Upon execution, it returns the `ui.Map.GeometryLayer` instance, allowing for method chaining. The input argument is `this`, referencing the specific `ui.Map.GeometryLayer` instance that the function is called upon.\n"],null,["# ui.Map.GeometryLayer.setColor\n\n\u003cbr /\u003e\n\nSets the CSS color of shapes in the layer.\n\n\u003cbr /\u003e\n\nReturns this map layer.\n\n| Usage | Returns |\n|---------------------------------|----------------------|\n| GeometryLayer.setColor`(color)` | ui.Map.GeometryLayer |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|------------------------------------|\n| this: `ui.map.geometrylayer` | ui.Map.GeometryLayer | The ui.Map.GeometryLayer instance. |\n| `color` | String | The color of the layer. |"]]