Set initial map location

Loading

Code

#ifndef SET_INITIAL_MAP_LOCATION_H
#define SET_INITIAL_MAP_LOCATION_H

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

#include <QQuickItem>

class SetInitialMapLocation : public QQuickItem
{
  Q_OBJECT

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

  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_LOCATION_H


In this topic
  1. Code