6#ifndef QMAPLIBRE_SETTINGS_H
7#define QMAPLIBRE_SETTINGS_H
9#include <QMapLibre/Export>
10#include <QMapLibre/Types>
12#include <QtCore/QString>
13#include <QtGui/QImage>
20class TileServerOptions;
42 ConstrainWidthAndHeight
69 [[nodiscard]]
MapMode mapMode()
const;
78 [[nodiscard]]
unsigned cacheDatabaseMaximumSize()
const;
79 void setCacheDatabaseMaximumSize(
unsigned);
81 [[nodiscard]] QString cacheDatabasePath()
const;
82 void setCacheDatabasePath(
const QString &path);
84 [[nodiscard]] QString assetPath()
const;
85 void setAssetPath(
const QString &path);
87 [[nodiscard]] QString apiKey()
const;
88 void setApiKey(
const QString &key);
90 [[nodiscard]] QString apiBaseUrl()
const;
91 void setApiBaseUrl(
const QString &url);
93 [[nodiscard]] QString localFontFamily()
const;
94 void setLocalFontFamily(
const QString &family);
96 [[nodiscard]] QString clientName()
const;
97 void setClientName(
const QString &name);
99 [[nodiscard]] QString clientVersion()
const;
100 void setClientVersion(
const QString &version);
106 void setStyles(
const Styles &styles);
108 [[nodiscard]]
const Styles &styles()
const;
109 [[nodiscard]]
Styles providerStyles()
const;
111 [[nodiscard]]
Coordinate defaultCoordinate()
const;
112 void setDefaultCoordinate(
const Coordinate &coordinate);
113 [[nodiscard]]
double defaultZoom()
const;
114 void setDefaultZoom(
double zoom);
116 [[nodiscard]]
bool customTileServerOptions()
const;
117 [[nodiscard]]
const mbgl::TileServerOptions &tileServerOptions()
const;
120 std::unique_ptr<SettingsPrivate> d_ptr;
The Settings class stores the initial configuration for Map.
Definition settings.hpp:27
ProviderTemplate
Definition settings.hpp:50
@ MapTilerProvider
Definition settings.hpp:53
@ MapLibreProvider
Definition settings.hpp:52
ConstrainMode
Definition settings.hpp:39
@ ConstrainHeightOnly
Definition settings.hpp:41
std::function< std::string(const std::string &)> ResourceTransformFunction
Resource transformation callback type.
Definition settings.hpp:57
ViewportMode
Definition settings.hpp:45
Settings & operator=(Settings &&s) noexcept
Move assignment operator.
Settings(Settings &&s) noexcept
Move constructor.
GLContextMode
Definition settings.hpp:29
@ UniqueGLContext
Definition settings.hpp:30
MapMode
Definition settings.hpp:34
Definition geojson.cpp:10
QVector< Style > Styles
Style vector.
Definition types.hpp:62
QPair< double, double > Coordinate
Coordinate helper type.
Definition types.hpp:20