ExtendedAttributesThe ExtendedAttributes element holds additional data about a Place. More... Inherits QtObject ExtendedAttributes instantiates the C++ class QQmlPropertyMap This type was introduced in Qt Location 5.0. Signals
Methods
Detailed DescriptionThe ExtendedAttributes element is a map of PlaceAttributes. To access attributes in the map use the keys() method to get the list of keys stored in the map and use the [] operator to access the PlaceAttribute items. The following are standard keys that are defined by the API. Plugin implementations are free to define additional keys. Custom keys should be qualified by a unique prefix to avoid clashes.
Some attributes may not be intended to be readable by end users, the label field of such attributes is empty to indicate this fact. The following example shows how to access all PlaceAttributes and print them to the console: import QtLocation 5.0 function printExtendedAttributes(extendedAttributes) { var keys = extendedAttributes.keys(); for (var i = 0; i < keys.length; ++i) { var key = keys[i]; if (extendedAttributes[key].label !== "") console.log(extendedAttributes[key].label + ": " + extendedAttributes[key].text); } } See also PlaceAttribute and QQmlPropertyMap. Signal DocumentationThis signal is raised when the set of attributes changes. key is the key corresponding to the value that was changed. Method DocumentationReturns an array of place attribute keys currently stored in the map. |