Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
16{
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
36}
37
41
46
void setMinimumZoomLevel(double minimumZoomLevel)
QGeoMappingManagerEngineItemsOverlay(const QVariantMap &parameters, QGeoServiceProvider::Error *error, QString *errorString)
void setCameraCapabilities(const QGeoCameraCapabilities &capabilities)
void engineInitialized()
Marks the engine as initialized.
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.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
#define tr(X)
#define Q_UNUSED(x)