Methods
(inner) isArrayObject(item, dictionary) → {boolean}
Checks if an item is an array or an object and recursively applies the parsing logic.
Parameters:
Name | Type | Description |
---|---|---|
item | * | The item to check. |
dictionary | Array | An array of dictionary entries. |
Returns:
Returns true if the item is an array or an object, false otherwise.
- Type:
- boolean
(inner) keyvalue_dictionary(keyvalue_dictionary, mapview)
Replaces key-value pairs in the mapview locale object with dictionary entries.
Parameters:
PropertiesName | Type | Description |
---|---|---|
keyvalue_dictionary | Array | An array of dictionary entries. |
mapview | mapview | The mapview object. |
Name | Type | Description |
---|---|---|
mapview.locale | Object | The locale object of the mapview. |
(inner) parseObject(obj, dictionary)
Parses an object and replaces its string values with dictionary entries.
Parameters:
Name | Type | Description |
---|---|---|
obj | Object | The object to parse. |
dictionary | Array | An array of dictionary entries. |
(inner) replaceKeyValue(obj, key, value, dictionary)
Replaces a key-value pair in an object with a dictionary entry.
Parameters:
Name | Type | Description |
---|---|---|
obj | Object | The object containing the key-value pair. |
key | string | The key of the value to replace. |
value | string | The value to replace. |
dictionary | Array | An array of dictionary entries. |