8#include <QtLocation/private/qgeocameracapabilities_p.h>
9#include <QtLocation/private/qgeomaptype_p.h>
10#include <QtLocation/private/qgeotiledmap_p.h>
11#include <QtLocation/private/qgeofiletilecache_p.h>
17#include <QJsonDocument>
46 double minimumZoomLevel = 0;
47 double maximumZoomLevel = 19;
68 if (!initializeMapSources(
error, errorString, cameraCaps))
177 errorString->
clear();
204 QFile mapsFile(
":/esri/maps.json");
237 int mapId = m_mapSources.
count() + 1;
static QGeoMapType::MapStyle mapStyle(const QString &styleString)
static QString toFormat(const QString &url)
QGeoMap * createMap() override
GeoTiledMappingManagerEngineEsri(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString)
const QList< GeoMapSource * > & mapSources() const
virtual ~GeoTiledMappingManagerEngineEsri()
GeoMapSource * mapSource(int mapId) const
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
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.
QML_STRUCTURED_VALUEMapStyle style
void setCameraCapabilities(const QGeoCameraCapabilities &capabilities)
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.
@ PrefetchTwoNeighbourLayers
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.
\inmodule QtCore\reentrant
QJsonObject object() const
Returns the QJsonObject contained in the document.
bool isObject() const
Returns true if the document contains an object.
static QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error=nullptr)
Parses json as a UTF-8 encoded JSON document, and creates a QJsonDocument from it.
QVariantMap toVariantMap() const
Converts this object to a QVariantMap.
qsizetype count() const noexcept
T value(const Key &key, const T &defaultValue=T()) const
bool contains(const Key &key) const
\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.
QString arg(qlonglong a, int fieldwidth=0, int base=10, QChar fillChar=u' ') const
QString toLower() const &
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]
qDeleteAll(list.begin(), list.end())
static const QString kParamUserAgent(kPrefixEsri+QStringLiteral("useragent"))
static const QString kParamToken(kPrefixEsri+QStringLiteral("token"))
static const QString kParamMaximumZoomLevel(kPrefixMapping+QStringLiteral("maximumZoomLevel"))
static const QString kPropNight(QStringLiteral("night"))
static const QString kPropMapId(QStringLiteral("mapId"))
static const QString kPropName(QStringLiteral("name"))
static const QString kPropDescription(QStringLiteral("description"))
static const QString kParamUserAgent(kPrefixEsri+QStringLiteral("useragent"))
static const QString kPropStyle(QStringLiteral("style"))
static const QString kPropUrl(QStringLiteral("url"))
static const QString kPropMobile(QStringLiteral("mobile"))
static const QString kParamToken(kPrefixEsri+QStringLiteral("token"))
static const QString kPropCopyright(QStringLiteral("copyrightText"))
static QT_BEGIN_NAMESPACE const QString kPrefixEsri(QStringLiteral("esri."))
static const QString kParamMinimumZoomLevel(kPrefixMapping+QStringLiteral("minimumZoomLevel"))
static const QString kPrefixMapping(kPrefixEsri+QStringLiteral("mapping."))
static const QString kPropMapSources(QStringLiteral("mapSources"))
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
static quint64 cacheSize()
QLatin1StringView QLatin1String
#define QStringLiteral(str)
char * toString(const MyType &t)
[31]
\inmodule QtCore\reentrant
QString errorString() const
\variable QJsonParseError::error
QT_BEGIN_NAMESPACE bool toBool(const QString &str)