ArcGIS Runtime SDK for Qt

Open map using URL

Loading

Code

#ifndef OPEN_MAP_URL_H
#define OPEN_MAP_URL_H

namespace Esri
{
  namespace ArcGISRuntime
  {
    class MapQuickView;
  }
}

class QString;

#include <QQuickItem>

class OpenMapUrl : public QQuickItem
{
  Q_OBJECT

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

  void componentComplete() Q_DECL_OVERRIDE;
  static void init();
  Q_INVOKABLE void openMap(const QString& itemId);

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

#endif // OPEN_MAP_URL_H


In this topic
  1. Code