Select to view content in your preferred language

How to add label definition to feature collection layer

541
1
Jump to solution
08-20-2019 03:08 AM
Girishchandra_Yendargaye
Occasional Contributor

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
Occasional Contributor


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
Occasional Contributor


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