Open an existing map

Loading

Code

#ifndef OPEN_EXISTING_MAP_H
#define OPEN_EXISTING_MAP_H

namespace Esri
{
    namespace ArcGISRuntime
    {
        class MapQuickView;
    }
}

class QString;

#include <QQuickItem>

class OpenExistingMap : public QQuickItem
{
    Q_OBJECT

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

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

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

#endif // OPEN_EXISTING_MAP_H


In this topic
  1. Code