Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
geomapsource.h
Go to the documentation of this file.
1// Copyright (C) 2013-2018 Esri <contracts@esri.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef GEOMAPSOURCE_H
5#define GEOMAPSOURCE_H
6
7#include <QtLocation/private/qgeomaptype_p.h>
8#include <QtLocation/private/qgeocameracapabilities_p.h>
9
10QT_BEGIN_NAMESPACE
11
12class GeoMapSource : public QGeoMapType
13{
14public:
15 GeoMapSource(QGeoMapType::MapStyle style, const QString &name,
16 const QString &description, bool mobile, bool night, int mapId,
17 const QString &url, const QString &copyright, const QGeoCameraCapabilities &cameraCapabilities);
18
19 inline const QString &url() const;
20 inline const QString &copyright() const;
21
22 static QString toFormat(const QString &url);
23 static QGeoMapType::MapStyle mapStyle(const QString &styleString);
24
25private:
26 QString m_url;
27 QString m_copyright;
28};
29
30inline const QString &GeoMapSource::url() const
31{
32 return m_url;
33}
34
35inline const QString &GeoMapSource::copyright() const
36{
37 return m_copyright;
38}
39
40QT_END_NAMESPACE
41
42#endif // GEOMAPSOURCE_H
static QT_BEGIN_NAMESPACE const QString kArcGISTileScheme(QStringLiteral("/tile/${z}/${y}/${x}"))
static const MapStyleData mapStyles[]
QGeoMapType::MapStyle style