new BaseObject(opt_values)
Name | Type | Description |
---|---|---|
values |
Object.<string, *> |
An object with key-value pairs. |
Fires:
-
propertychange
(module:ol/Object~ObjectEvent) - Triggered when a property is changed.
Methods
-
get(key){*}
Object.js, line 119 -
Gets a value.
Name Type Description key
string Key name.
Returns:
Value.
-
getKeys(){Array.<string>}
Object.js, line 132 -
Get a list of object property names.
Returns:
List of property names.
-
getProperties(){Object.<string, *>}
Object.js, line 141 -
Get an object of all property names and values.
Returns:
Object.
-
set(key, value, opt_silent)
Object.js, line 164 -
Sets a value.
Name Type Description key
string Key name.
value
* Value.
silent
boolean Update without triggering an event.
-
setProperties(values, opt_silent)
Object.js, line 183 -
Sets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).
Name Type Description values
Object.<string, *> Values.
silent
boolean Update without triggering an event.
-
unset(key, opt_silent)
Object.js, line 195 -
Unsets a property.
Name Type Description key
string Key name.
silent
boolean Unset without triggering an event.