EsriMapProvider.h 1.69 KB
Newer Older
Cosmin Marc's avatar
Cosmin Marc committed
1 2
/****************************************************************************
 *
Gus Grubba's avatar
Gus Grubba committed
3
 * (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
Cosmin Marc's avatar
Cosmin Marc committed
4 5 6 7 8 9
 *
 * QGroundControl is licensed according to the terms in the file
 * COPYING.md in the root of the source code directory.
 *
 ****************************************************************************/

10 11 12 13 14 15
#pragma once

#include "MapProvider.h"

class EsriMapProvider : public MapProvider {
    Q_OBJECT
Cosmin Marc's avatar
Cosmin Marc committed
16

17
  public:
Cosmin Marc's avatar
Cosmin Marc committed
18
    EsriMapProvider(const quint32 averageSize, const QGeoMapType::MapStyle mapType, QObject* parent = nullptr);
19

Cosmin Marc's avatar
Cosmin Marc committed
20
    QNetworkRequest getTileURL(const int x, const int y, const int zoom, QNetworkAccessManager* networkManager) override;
21 22 23 24
};

class EsriWorldStreetMapProvider : public EsriMapProvider {
    Q_OBJECT
Cosmin Marc's avatar
Cosmin Marc committed
25

26
  public:
Cosmin Marc's avatar
Cosmin Marc committed
27 28 29 30
    EsriWorldStreetMapProvider(QObject* parent = nullptr)
        : EsriMapProvider(AVERAGE_TILE_SIZE, QGeoMapType::StreetMap, parent) {}

    QString _getURL(const int x, const int y, const int zoom, QNetworkAccessManager* networkManager) override;
31 32 33 34
};

class EsriWorldSatelliteMapProvider : public EsriMapProvider {
    Q_OBJECT
Cosmin Marc's avatar
Cosmin Marc committed
35

36
  public:
Cosmin Marc's avatar
Cosmin Marc committed
37 38 39 40
    EsriWorldSatelliteMapProvider(QObject* parent = nullptr)
        : EsriMapProvider(AVERAGE_TILE_SIZE, QGeoMapType::SatelliteMapDay, parent) {}

    QString _getURL(const int x, const int y, const int zoom, QNetworkAccessManager* networkManager) override;
41 42 43 44
};

class EsriTerrainMapProvider : public EsriMapProvider {
    Q_OBJECT
Cosmin Marc's avatar
Cosmin Marc committed
45

46
  public:
Cosmin Marc's avatar
Cosmin Marc committed
47 48 49 50
    EsriTerrainMapProvider(QObject* parent = nullptr)
        : EsriMapProvider(AVERAGE_TILE_SIZE, QGeoMapType::TerrainMap, parent) {}

    QString _getURL(const int x, const int y, const int zoom, QNetworkAccessManager* networkManager) override;
51
};