Feature layer definition expression

Loading

Code

#ifndef FEATURE_LAYER_DEFINITION_EXPRESSION_H
#define FEATURE_LAYER_DEFINITION_EXPRESSION_H

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

#include <QQuickItem>

class FeatureLayerDefinitionExpression : public QQuickItem
{
  Q_OBJECT

  Q_PROPERTY(bool layerInitialized READ layerInitialized NOTIFY layerInitializedChanged)

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

  void componentComplete() Q_DECL_OVERRIDE;
  static void init();
  Q_INVOKABLE void setDefExpression(QString whereClause);

signals:
  void layerInitializedChanged();

private:
  bool layerInitialized() const;

private:
  Esri::ArcGISRuntime::Map* m_map = nullptr;
  Esri::ArcGISRuntime::MapQuickView* m_mapView = nullptr;
  Esri::ArcGISRuntime::FeatureLayer* m_featureLayer = nullptr;
  bool m_initialized = false;
};

#endif // FEATURE_LAYER_DEFINITION_EXPRESSION_H


In this topic
  1. Code