ui.Map.DrawingTools.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 |
---|
DrawingTools.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."],[[["Sets the value of a specified property within a ui.data.ActiveDictionary object."],["Throws an error if the provided key is not a supported property, refer to the constructor parameters for valid properties."],["Accepts either a single key-value pair or a dictionary of key-value pairs to modify the object's properties."],["Returns the updated ui.data.ActiveDictionary instance, enabling method chaining."]]],["The `set` method of `ui.data.ActiveDictionary` modifies object properties. It accepts either a `keyOrDict` (string or object) and optionally a `value`. If `keyOrDict` is a string, `value` is mandatory, representing the new property value. If `keyOrDict` is an object it is a dictionary containing key/value pairs that will be applied to the object. Invalid keys trigger an error. It returns the modified `ui.data.ActiveDictionary` instance.\n"]]