MapLibre Native for Qt
Loading...
Searching...
No Matches
filter_parameter.hpp
1// Copyright (C) 2023 MapLibre contributors
2
3// SPDX-License-Identifier: BSD-2-Clause
4
5#ifndef QMAPLIBRE_FILTER_PARAMETER_H
6#define QMAPLIBRE_FILTER_PARAMETER_H
7
8#include "style_parameter.hpp"
9
10#include <QMapLibre/Export>
11
12#include <QtCore/QObject>
13#include <QtCore/QString>
14#include <QtCore/QVariantList>
15
16namespace QMapLibre {
17
18class Q_MAPLIBRE_CORE_EXPORT FilterParameter : public StyleParameter {
19 Q_OBJECT
20public:
21 explicit FilterParameter(QObject *parent = nullptr);
22 ~FilterParameter() override;
23
24 [[nodiscard]] QVariantList expression() const;
25 void setExpression(const QVariantList &expression);
26
27Q_SIGNALS:
29
30protected:
31 QVariantList m_expression;
32
33 Q_DISABLE_COPY(FilterParameter)
34};
35
36} // namespace QMapLibre
37
38#endif // QMAPLIBRE_FILTER_PARAMETER_H
A helper utility to manage filter parameters for a layer.
Definition filter_parameter.hpp:18
void expressionUpdated()
Signal emitted when the filter expression is updated.
QVariantList m_expression
Filter expression.
Definition filter_parameter.hpp:31
A base class to pass style parameters to Map.
Definition style_parameter.hpp:16
Definition geojson.cpp:10