EsriMapProvider.h 1.48 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
#pragma once

#include "MapProvider.h"

#include <QByteArray>
#include <QMutex>
#include <QNetworkProxy>
#include <QNetworkReply>
#include <QPoint>
#include <QString>

class EsriMapProvider : public MapProvider {
    Q_OBJECT
  public:
    using MapProvider::MapProvider;

    QNetworkRequest getTileURL(int x, int y, int zoom,
                               QNetworkAccessManager* networkManager);
};

class EsriWorldStreetMapProvider : public EsriMapProvider {
    Q_OBJECT
  public:
    EsriWorldStreetMapProvider(QObject* parent)
        : EsriMapProvider(QString(""), QString(""), AVERAGE_TILE_SIZE,
                          QGeoMapType::StreetMap, parent) {}
    QString _getURL(int x, int y, int zoom,
                    QNetworkAccessManager* networkManager);
};

class EsriWorldSatelliteMapProvider : public EsriMapProvider {
    Q_OBJECT
  public:
    EsriWorldSatelliteMapProvider(QObject* parent)
        : EsriMapProvider(QString(""), QString(""), AVERAGE_TILE_SIZE,
                          QGeoMapType::SatelliteMapDay, parent) {}
    QString _getURL(int x, int y, int zoom,
                    QNetworkAccessManager* networkManager);
};

class EsriTerrainMapProvider : public EsriMapProvider {
    Q_OBJECT
  public:
    EsriTerrainMapProvider(QObject* parent)
        : EsriMapProvider(QString(""), QString(""), AVERAGE_TILE_SIZE,
                          QGeoMapType::TerrainMap, parent) {}
    QString _getURL(int x, int y, int zoom,
                    QNetworkAccessManager* networkManager);
};