ui.Map.GeometryLayer.set
Sets 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.
Returns this ui.data.ActiveDictionary.
Usage | Returns |
---|
GeometryLayer.set(keyOrDict, value) | ui.data.ActiveDictionary |
Argument | Type | Details |
---|
this: ui.data.activedictionary | ui.data.ActiveDictionary | The ui.data.ActiveDictionary instance. |
keyOrDict | Object|String | Either the key of the property to set or a dictionary of key/value pairs to set on the object. |
value | Object, optional | The property's new value. This is required when the first argument is a key string. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Allows modification of a GeometryLayer's properties by setting the value of a given property using a key or a dictionary of key/value pairs."],["Throws an error if the provided key is not a supported property, refer to the constructor's parameters for valid properties."],["Returns the ui.data.ActiveDictionary instance after the property modification."],["Requires a value argument when the first argument is a key string, indicating the new value for the specified property."]]],[]]