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
5
6#include <QtLocation/private/qgeocameracapabilities_p.h>
7#include <QtLocation/private/qgeomaptype_p.h>
9
11
12
13
14QGeoMappingManagerEngineItemsOverlay::QGeoMappingManagerEngineItemsOverlay(const QVariantMap &parameters, QGeoServiceProvider::Error *error, QString *errorString)
15: QGeoMappingManagerEngine()
16{
17 Q_UNUSED(parameters);
18 Q_UNUSED(error);
19 Q_UNUSED(errorString);
20 QGeoCameraCapabilities cameraCaps;
21 cameraCaps.setMinimumZoomLevel(0.0);
22 cameraCaps.setMaximumZoomLevel(30.0);
23 cameraCaps.setSupportsBearing(true);
24 cameraCaps.setSupportsTilting(true);
25 cameraCaps.setMinimumTilt(0);
26 cameraCaps.setMaximumTilt(89);
27 cameraCaps.setMinimumFieldOfView(1.0);
28 cameraCaps.setMaximumFieldOfView(179.0);
29 setCameraCapabilities(cameraCaps);
30
31 QList<QGeoMapType> mapTypes;
32 mapTypes << QGeoMapType(QGeoMapType::NoMap, tr("Empty Map"), tr("Empty Map"), false, false, 1, "itemsoverlay", cameraCaps);
33 setSupportedMapTypes(mapTypes);
34
35 engineInitialized();
36}
37
38QGeoMappingManagerEngineItemsOverlay::~QGeoMappingManagerEngineItemsOverlay()
39{
40}
41
42QGeoMap *QGeoMappingManagerEngineItemsOverlay::createMap()
43{
44 return new QGeoMapItemsOverlay(this, this);
45}
46
47QT_END_NAMESPACE