ArcGIS Runtime SDK for Qt

Display a map

Loading

Code

#ifndef DISPLAY_MAP_H
#define DISPLAY_MAP_H

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

#include <QQuickItem>

class DisplayMap : public QQuickItem
{
  Q_OBJECT

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

  void componentComplete() Q_DECL_OVERRIDE;
  static void init();

private:
  Esri::ArcGISRuntime::Map* m_map = nullptr;
  Esri::ArcGISRuntime::MapQuickView* m_mapView = nullptr;
};

#endif // DISPLAY_MAP_H


In this topic
  1. Code