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
geotiledmap_esri.cpp
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#include "geotiledmap_esri.h"
6
7#include <QtLocation/private/qgeotilespec_p.h>
8
10
12 Map(engine, parent), m_engine(engine), m_mapId(-1)
13{
14}
15
19
20void GeoTiledMapEsri::evaluateCopyrights(const QSet<QGeoTileSpec> &visibleTiles)
21{
22 if (visibleTiles.isEmpty())
23 return;
24
25 QGeoTileSpec tile = *(visibleTiles.constBegin());
26 if (tile.mapId() == m_mapId)
27 return;
28
29 m_mapId = tile.mapId();
30
31 GeoMapSource *mapSource = engine()->mapSource(m_mapId);
32
33 if (mapSource)
34 emit copyrightsChanged(mapSource->copyright());
35}
36
const QString & copyright() const
GeoTiledMappingManagerEngineEsri * engine() const
GeoTiledMapEsri(GeoTiledMappingManagerEngineEsri *engine, QObject *parent=nullptr)
void evaluateCopyrights(const QSet< QGeoTileSpec > &visibleTiles) override
void copyrightsChanged(const QString &copyrightsHtml)
\inmodule QtCore
Definition qobject.h:103
Combined button and popup list for selecting options.
#define emit
QJSEngine engine
[0]