9#include <QtLocation/private/qgeocameracapabilities_p.h>
10#include <QtLocation/private/qgeomaptype_p.h>
11#include <QtLocation/private/qgeotiledmap_p.h>
12#include <QtLocation/private/qgeofiletilecache_p.h>
14#include <QtNetwork/QNetworkAccessManager>
15#include <QtNetwork/QNetworkDiskCache>
58 if (
QUrl(customAddress).isValid())
59 domain = customAddress;
61 qWarning() <<
"Invalid custom providers repository address: " << customAddress;
100 QStringLiteral(
"<a href='http://www.openstreetmap.org/copyright'>OpenStreetMap.org</a>"),
101 QStringLiteral(
"<a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors")));
109 QStringLiteral(
"<a href='http://www.thunderforest.com/'>Thunderforest</a>"),
110 QStringLiteral(
"<a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors")));
116 QStringLiteral(
"<a href='http://www.thunderforest.com/'>Thunderforest</a>"),
117 QStringLiteral(
"<a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors")));
123 QStringLiteral(
"<a href='http://www.thunderforest.com/'>Thunderforest</a>"),
124 QStringLiteral(
"<a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors")) );
130 QStringLiteral(
"<a href='http://www.thunderforest.com/'>Thunderforest</a>"),
131 QStringLiteral(
"<a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors")));
137 QStringLiteral(
"<a href='http://www.thunderforest.com/'>Thunderforest</a>"),
138 QStringLiteral(
"<a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors")));
145 providers_street, cameraCaps ));
148 providers_satellite, cameraCaps ));
151 providers_cycle, cameraCaps ));
154 providers_transit, cameraCaps ));
157 providers_nighttransit, cameraCaps ));
160 providers_terrain, cameraCaps ));
163 providers_hiking, cameraCaps ));
192 dataCopyright) }, cameraCaps
198 bool disableRedirection =
false;
204 if (disableRedirection) {
205 provider->disableRedirection();
302 errorString->
clear();
325 return m_customCopyright;
347 if (!provider->isResolved() || provider->isValid())
348 mapTypes << provider->mapType();
351 if (currentlySupportedMapTypes != mapTypes)
virtual void setMaxDiskUsage(int diskUsage)
static QString baseLocationCacheDirectory()
virtual void setMaxMemoryUsage(int memoryUsage)
virtual void setCostStrategyDisk(CostStrategy costStrategy)=0
virtual void setCostStrategyMemory(CostStrategy costStrategy)=0
virtual void setCostStrategyTexture(CostStrategy costStrategy)=0
virtual void setExtraTextureUsage(int textureUsage)=0
\inmodule QtCore\reentrant
void setSupportsBearing(bool supportsBearing)
Sets whether the associated plugin can render a map when the camera has an arbitrary bearing to suppo...
void setMaximumZoomLevel(double maximumZoomLevel)
void setMaximumTilt(double maximumTilt)
void setMaximumFieldOfView(double maximumFieldOfView)
void setMinimumFieldOfView(double minimumFieldOfView)
void setOverzoomEnabled(bool overzoomEnabled)
Sets whether overzooming is supported by the associated plugin.
void setMinimumTilt(double minimumTilt)
void setMinimumZoomLevel(double minimumZoomLevel)
void setSupportsTilting(bool supportsTilting)
Sets whether the associated plugin can render a map when the camera is tilted to supportsTilting.
void mapDataUpdated(int mapId)
void setCameraCapabilities(const QGeoCameraCapabilities &capabilities)
QList< QGeoMapType > supportedMapTypes() const
void setSupportedMapTypes(const QList< QGeoMapType > &supportedMapTypes)
Sets the list of map types supported by this engine to mapTypes.
QVariantMap parameters() const
Error
Describes an error related to the loading and setup of a service provider plugin.
void disableRedirection()
void resolutionFinished(const QGeoTileProviderOsm *provider)
void resolutionError(const QGeoTileProviderOsm *provider)
@ PrefetchTwoNeighbourLayers
virtual void clearScene(int mapId)
QGeoTiledMappingManagerEngineOsm(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString)
const QList< QGeoTileProviderOsm * > & providers()
QString customCopyright() const
friend class QGeoTiledMapOsm
QGeoMap * createMap() override
void onProviderResolutionFinished(const QGeoTileProviderOsm *provider)
~QGeoTiledMappingManagerEngineOsm()
void onProviderResolutionError(const QGeoTileProviderOsm *provider)
QGeoTiledMap::PrefetchStyle m_prefetchStyle
QGeoTileFetcher * tileFetcher()
void setTileSize(const QSize &tileSize)
void setTileFetcher(QGeoTileFetcher *fetcher)
Sets the tile fetcher.
QAbstractGeoTileCache * tileCache()
void setTileCache(QAbstractGeoTileCache *cache)
Sets the tile cache.
void push_back(parameter_type t)
T value(const Key &key, const T &defaultValue=T()) const
bool contains(const Key &key) const
The QNetworkAccessManager class allows the application to send network requests and receive replies.
void setCache(QAbstractNetworkCache *cache)
The QNetworkDiskCache class provides a very basic disk cache.
void setCacheDirectory(const QString &cacheDir)
Sets the directory where cached files will be stored to cacheDir.
void setMaximumCacheSize(qint64 size)
Sets the maximum size of the disk cache to be size.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
\macro QT_RESTRICTED_CAST_FROM_ASCII
QByteArray toLatin1() const &
int toInt(bool *ok=nullptr, int base=10) const
Returns the string converted to an int using base base, which is 10 by default and must be between 2 ...
void clear()
Clears the contents of the string and makes it null.
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
QString toLower() const &
static QString static QString qsizetype indexOf(QChar c, qsizetype from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
qsizetype length() const
Returns the number of characters in this string.
QString toString() const
Returns the variant as a QString if the variant has a userType() including, but not limited to:
QMap< QString, QString > map
[6]
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
static const QDateTime defaultTs
GLenum const GLint * param
static quint64 cacheSize()
QLatin1StringView QLatin1String
#define QStringLiteral(str)
QNetworkDiskCache * diskCache
\inmodule QtCore \reentrant
QT_BEGIN_NAMESPACE bool toBool(const QString &str)