Add graphics with symbols

Loading

Code

#ifndef GO_SYMBOLS_H
#define GO_SYMBOLS_H

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

#include <QQuickItem>

class GOSymbols : public QQuickItem
{
  Q_OBJECT

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

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

private:
  void addBuoyPoints(Esri::ArcGISRuntime::GraphicsOverlay* graphicsOverlay);
  void addBoatTrip(Esri::ArcGISRuntime::GraphicsOverlay* graphicsOverlay);
  void addNestingGround(Esri::ArcGISRuntime::GraphicsOverlay* graphicsOverlay);
  void addText(Esri::ArcGISRuntime::GraphicsOverlay* graphicsOverlay);
  Esri::ArcGISRuntime::Geometry createNestingGround();

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

#endif // GOSYMBOLS_H


In this topic
  1. Code