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 [[nodiscard]]
virtual QVariant parsedProperty(
const char *propertyName)
const;
27 bool hasProperty(
const char *propertyName)
const;
28 void updateProperty(
const char *propertyName,
const QVariant &value);
30 [[nodiscard]] QVariantMap toVariantMap()
const;
32 [[nodiscard]] QString styleId()
const;
33 void setStyleId(
const QString &
id);
43 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:46
void updated(StyleParameter *parameter)
Signal emitted when the style parameter is updated.
Definition geojson.cpp:10