|
MapLibre Native for Qt
|
A helper utility to create an additional map data source in the Map. More...
#include <QMapLibre/SourceParameter>
Public Member Functions | |
| SourceParameter (QObject *parent=nullptr) | |
| Default constructor. | |
| QString | type () const |
| Get source type. | |
| void | setType (const QString &type) |
| Set source type. | |
Public Member Functions inherited from QMapLibre::StyleParameter | |
| StyleParameter (QObject *parent=nullptr) | |
| Default constructor. | |
| bool | operator== (const StyleParameter &other) const |
| Comparison operator. | |
| bool | isReady () const |
| Check if the style parameter is ready. | |
| virtual QVariant | parsedProperty (const char *propertyName) const |
| Get the property value. | |
| bool | hasProperty (const char *propertyName) const |
| Check for property existence. | |
| void | updateProperty (const char *propertyName, const QVariant &value) |
| Update property value. | |
| QVariantMap | toVariantMap () const |
| Return a map of all properties. | |
| QString | styleId () const |
| Return style identifier. | |
| void | setStyleId (const QString &id) |
| Set style identifier. | |
Protected Attributes | |
| QString | m_type |
| Type of the source configured. | |
Protected Attributes inherited from QMapLibre::StyleParameter | |
| const int | m_initialPropertyCount = staticMetaObject.propertyCount() |
| Number of properties in the base class. | |
| bool | m_ready {} |
| Ready status of the style parameter. | |
| QString | m_styleId |
| Style identifier of the parameter. | |
Additional Inherited Members | |
Public Slots inherited from QMapLibre::StyleParameter | |
| void | updateNotify () |
| Notify that the style parameter has been updated. | |
Signals inherited from QMapLibre::StyleParameter | |
| void | ready (StyleParameter *parameter) |
| Signal emitted when the style parameter is ready. | |
| void | updated (StyleParameter *parameter) |
| Signal emitted when the style parameter is updated. | |
A helper utility to create an additional map data source in the Map.
Needs to have a type set to one of the supported types. Other properties are set dynamically, depending on the type.
| void QMapLibre::SourceParameter::setType | ( | const QString & | type | ) |
Set source type.
| type | Source type as QString. |
|
nodiscard |
Get source type.
QString.