Standard License

Simple renderer layer

Display a local feature layer over a local tiled layer. The tiled layer constrains the minimum and maximum zoom of the map. The default renderer of the feature layer is overridden with a new SimpleMarkerSymbol. The maximum records returned from the local feature service is set before the layer is initialized, using the setMaximumRecords method.

// Copyright 2015 ESRI//// All rights reserved under the copyright laws of the United States// and applicable international laws, treaties, and conventions.//// You may freely redistribute and use this sample code, with or// without modification, provided you include the original copyright// notice and use restrictions.//// See the Sample code usage restrictions document for further information.//#ifndef SIMPLE_FEATURE_SERVICE_TABLE_SAMPLE_H
#define SIMPLE_FEATURE_SERVICE_TABLE_SAMPLE_H
#include"rtsample.h"#include"FeatureLayer.h"#include"LocalFeatureService.h"namespace Ui {classsimple_feature_service_table_sample;}classsimple_feature_service_table_sample:public RTSample
{
Q_OBJECT
public:explicitsimple_feature_service_table_sample(const QString& title,const QString& categoryList,const QString& shortDesc,const QString& longDesc,const QString& thumbnail);virtual~simple_feature_service_table_sample();virtualvoidrun();private slots:voidonMapReady();voidonServiceCreationSuccess(const QString&,const QString&);voidonServiceCreationFailure(const QString&);voidonResizeProgressBar();private:
EsriRuntimeQt::LocalFeatureService m_featureService;
EsriRuntimeQt::FeatureLayer* m_featureLayer;
QProgressDialog* m_progressDialog;QGraphicsProxyWidget*m_proxyProgressBar;};#endif// SIMPLE_FEATURE_SERVICE_TABLE_SAMPLE_H