5#ifndef QMAPLIBRE_LAYER_PARAMETER_H
6#define QMAPLIBRE_LAYER_PARAMETER_H
8#include "style_parameter.hpp"
10#include <QMapLibre/Export>
12#include <QtCore/QJsonObject>
13#include <QtCore/QObject>
14#include <QtCore/QString>
24 [[nodiscard]] QString type()
const;
25 void setType(
const QString &type);
27 [[nodiscard]] QJsonObject layout()
const;
28 void setLayout(
const QJsonObject &layout);
29 Q_INVOKABLE
void setLayoutProperty(
const QString &key,
const QVariant &value);
31 [[nodiscard]] QJsonObject paint()
const;
32 void setPaint(
const QJsonObject &paint);
33 Q_INVOKABLE
void setPaintProperty(
const QString &key,
const QVariant &value);
A helper utility to create and configure map layers in the Map.
Definition layer_parameter.hpp:18
QJsonObject m_paint
Paint properties of the layer.
Definition layer_parameter.hpp:42
void layoutUpdated()
Signal emitted when the layer layout is updated.
QJsonObject m_layout
Layout properties of the layer.
Definition layer_parameter.hpp:41
void paintUpdated()
Signal emitted when the layer paint is updated.
QString m_type
Type of the source configured.
Definition layer_parameter.hpp:40
A base class to pass style parameters to Map.
Definition style_parameter.hpp:16
Definition geojson.cpp:10