ArcGIS Runtime SDK for Qt

Export tiles

Loading

Code

#ifndef EXPORT_TILES
#define EXPORT_TILES

#include "ExportTileCacheParameters.h"

namespace Esri
{
  namespace ArcGISRuntime
  {
    class Map;
    class MapQuickView;
    class ExportTileCacheTask;
    class TileCache;
  }
}

#include <QQuickItem>

class ExportTiles : public QQuickItem
{
  Q_OBJECT

public:
  explicit ExportTiles(QQuickItem* parent = nullptr);
  ~ExportTiles();

  void componentComplete() Q_DECL_OVERRIDE;
  static void init();
  Q_INVOKABLE void exportTileCacheFromCorners(double xCorner1, double yCorner1, double xCorner2, double yCorner2, QString dataPath);

signals:
  void updateStatus(QString status);
  void hideWindow(int time, bool success);

private:
  void displayOutputTileCache(Esri::ArcGISRuntime::TileCache* tileCache);

private:
  Esri::ArcGISRuntime::Map* m_map = nullptr;
  Esri::ArcGISRuntime::MapQuickView* m_mapView = nullptr;
  Esri::ArcGISRuntime::ExportTileCacheTask* m_exportTileCacheTask = nullptr;
  Esri::ArcGISRuntime::ExportTileCacheParameters m_parameters;
  QUrl m_serviceUrl = QUrl("http://sampleserver6.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer");
};

#endif // EXPORT_TILES


In this topic
  1. Code