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
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
6
7#include <QtLocation/private/qgeotilespec_p.h>
8
10
11GeoTiledMapEsri::GeoTiledMapEsri(GeoTiledMappingManagerEngineEsri *engine, QObject *parent) :
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
37QT_END_NAMESPACE
GeoTiledMappingManagerEngineEsri * engine() const
void evaluateCopyrights(const QSet< QGeoTileSpec > &visibleTiles) override
QGeoTiledMap Map
QJSEngine engine
[0]