5#ifndef QMAPLIBRE_STYLE_PARAMETER_H
6#define QMAPLIBRE_STYLE_PARAMETER_H
8#include <QMapLibre/Export>
10#include <QtCore/QObject>
11#include <QtCore/QString>
12#include <QtCore/QVariantMap>
24 [[nodiscard]]
inline bool isReady()
const {
return m_ready; };
26 bool hasProperty(
const char *propertyName)
const;
27 void updateProperty(
const char *propertyName,
const QVariant &value);
29 [[nodiscard]] QVariantMap toVariantMap()
const;
31 [[nodiscard]] QString styleId()
const;
32 void setStyleId(
const QString &
id);
42 const int m_initialPropertyCount = staticMetaObject.propertyCount();
A base class to pass style parameters to Map.
Definition style_parameter.hpp:16
bool isReady() const
Check if the style parameter is ready.
Definition style_parameter.hpp:24
void ready(StyleParameter *parameter)
Signal emitted when the style parameter is ready.
QString m_styleId
Style identifier of the parameter.
Definition style_parameter.hpp:45
void updated(StyleParameter *parameter)
Signal emitted when the style parameter is updated.
Definition geojson.cpp:10