ui.Map.GeometryLayer.set
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Ustawia wartość danej właściwości. Zwraca błąd, jeśli podany klucz nie jest obsługiwany przez obiekt. Sprawdź parametry konstruktora, aby zobaczyć, które właściwości można ustawić.
Zwraca ui.data.ActiveDictionary.
Wykorzystanie | Zwroty |
---|
GeometryLayer.set(keyOrDict, value) | ui.data.ActiveDictionary |
Argument | Typ | Szczegóły |
---|
to: ui.data.activedictionary | ui.data.ActiveDictionary | Instancja ui.data.ActiveDictionary. |
keyOrDict | Object|String | Klucz właściwości do ustawienia lub słownik par klucz/wartość do ustawienia w obiekcie. |
value | Obiekt (opcjonalnie) | Nowa wartość właściwości. Jest to wymagane, gdy pierwszym argumentem jest ciąg klucza. |
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\u003eAllows modification of a GeometryLayer's properties by setting the value of a given property using a key or a dictionary of key/value pairs.\u003c/p\u003e\n"],["\u003cp\u003eThrows an error if the provided key is not a supported property, refer to the constructor's parameters for valid properties.\u003c/p\u003e\n"],["\u003cp\u003eReturns the ui.data.ActiveDictionary instance after the property modification.\u003c/p\u003e\n"],["\u003cp\u003eRequires a value argument when the first argument is a key string, indicating the new value for the specified property.\u003c/p\u003e\n"]]],[],null,["# ui.Map.GeometryLayer.set\n\n\u003cbr /\u003e\n\nSets the value of a given property. Throws an error if the key provided is not supported by the object. Look at the constructor's parameters to see which properties can be set.\n\n\u003cbr /\u003e\n\nReturns this ui.data.ActiveDictionary.\n\n| Usage | Returns |\n|-------------------------------------------|--------------------------|\n| GeometryLayer.set`(keyOrDict, `*value*`)` | ui.data.ActiveDictionary |\n\n| Argument | Type | Details |\n|----------------------------------|--------------------------|------------------------------------------------------------------------------------------------|\n| this: `ui.data.activedictionary` | ui.data.ActiveDictionary | The ui.data.ActiveDictionary instance. |\n| `keyOrDict` | Object\\|String | Either the key of the property to set or a dictionary of key/value pairs to set on the object. |\n| `value` | Object, optional | The property's new value. This is required when the first argument is a key string. |"]]