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
qgeomappingmanagerengineitemsoverlay.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
6
7#include <QtLocation/private/qgeocameracapabilities_p.h>
8#include <QtLocation/private/qgeomaptype_p.h>
10
12
13
14
15QGeoMappingManagerEngineItemsOverlay::QGeoMappingManagerEngineItemsOverlay(const QVariantMap &parameters, QGeoServiceProvider::Error *error, QString *errorString)
16: QGeoMappingManagerEngine()
17{
18 Q_UNUSED(parameters);
19 Q_UNUSED(error);
20 Q_UNUSED(errorString);
21 QGeoCameraCapabilities cameraCaps;
22 cameraCaps.setMinimumZoomLevel(0.0);
23 cameraCaps.setMaximumZoomLevel(30.0);
24 cameraCaps.setSupportsBearing(true);
25 cameraCaps.setSupportsTilting(true);
26 cameraCaps.setMinimumTilt(0);
27 cameraCaps.setMaximumTilt(89);
28 cameraCaps.setMinimumFieldOfView(1.0);
29 cameraCaps.setMaximumFieldOfView(179.0);
30 setCameraCapabilities(cameraCaps);
31
32 QList<QGeoMapType> mapTypes;
33 mapTypes << QGeoMapType(QGeoMapType::NoMap, tr("Empty Map"), tr("Empty Map"), false, false, 1, "itemsoverlay", cameraCaps);
34 setSupportedMapTypes(mapTypes);
35
36 engineInitialized();
37}
38
39QGeoMappingManagerEngineItemsOverlay::~QGeoMappingManagerEngineItemsOverlay()
40{
41}
42
43QGeoMap *QGeoMappingManagerEngineItemsOverlay::createMap()
44{
45 return new QGeoMapItemsOverlay(this, this);
46}
47
48QT_END_NAMESPACE
Combined button and popup list for selecting options.