Map rotation

Loading

Code

#ifndef MAP_ROTATION_H
#define MAP_ROTATION_H

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

#include <QQuickItem>

class MapRotation : public QQuickItem
{
  Q_OBJECT

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

  void componentComplete() Q_DECL_OVERRIDE;
  static void init();
  Q_INVOKABLE void setMapViewRotation(double degrees);

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

#endif // MAP_ROTATION_H


In this topic
  1. Code