MapLibre Native for Qt
Loading...
Searching...
No Matches
source_parameter.hpp
1// Copyright (C) 2023 MapLibre contributors
2
3// SPDX-License-Identifier: BSD-2-Clause
4
5#ifndef QMAPLIBRE_SOURCE_PARAMETER_H
6#define QMAPLIBRE_SOURCE_PARAMETER_H
7
8#include "style_parameter.hpp"
9
10#include <QMapLibre/Export>
11
12#include <QtCore/QObject>
13#include <QtCore/QString>
14
15namespace QMapLibre {
16
17class Q_MAPLIBRE_CORE_EXPORT SourceParameter : public StyleParameter {
18 Q_OBJECT
19public:
20 explicit SourceParameter(QObject *parent = nullptr);
21 ~SourceParameter() override;
22
23 [[nodiscard]] QString type() const;
24 void setType(const QString &type);
25
26protected:
27 QString m_type;
28
29 Q_DISABLE_COPY(SourceParameter)
30};
31
32} // namespace QMapLibre
33
34#endif // QMAPLIBRE_SOURCE_PARAMETER_H
A helper utility to create an additional map data source in the Map.
Definition source_parameter.hpp:17
QString m_type
Type of the source configured.
Definition source_parameter.hpp:27
A base class to pass style parameters to Map.
Definition style_parameter.hpp:16
Definition geojson.cpp:10