How to add label definition to feature collection layer

419
1
Jump to solution
08-20-2019 03:08 AM
Girishchandra_Yendargaye
New Contributor III

Hello Team,

We are using C++ ARCGIS Runtime SDK for qt.

Can you please tell us How to add label definition to feature collection layer.

Thanks,

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Girishchandra_Yendargaye
New Contributor III


This does the job,

dynamic_cast
<FeatureLayer*>(m_featureCollectionLayer->layers().at(0))->labelDefinitions()->append(labelDef);

dynamic_cast<FeatureLayer*>(m_featureCollectionLayer->layers().at(0))->setLabelsEnabled(true);

View solution in original post

0 Kudos
1 Reply
Girishchandra_Yendargaye
New Contributor III


This does the job,

dynamic_cast
<FeatureLayer*>(m_featureCollectionLayer->layers().at(0))->labelDefinitions()->append(labelDef);

dynamic_cast<FeatureLayer*>(m_featureCollectionLayer->layers().at(0))->setLabelsEnabled(true);

0 Kudos