Set initial map area

Loading

Code

#ifndef SET_INITIAL_MAP_AREA_H
#define SET_INITIAL_MAP_AREA_H

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

#include <QQuickItem>

class SetInitialMapArea : public QQuickItem
{
  Q_OBJECT

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

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

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

#endif // SET_INITIAL_MAP_AREA_H


In this topic
  1. Code