ArcGIS Runtime SDK for Qt

Change basemap

Loading

Code

#ifndef CHANGE_BASEMAP_H
#define CHANGE_BASEMAP_H

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

#include <QQuickItem>

class ChangeBasemap : public QQuickItem
{
  Q_OBJECT

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

  void componentComplete() Q_DECL_OVERRIDE;
  static void init();
  Q_INVOKABLE void changeBasemap(QString basemap);

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

#endif // CHANGE_BASEMAP_H


In this topic
  1. Code