How add label in Feature Collection Layer which I have created...
I don't find below method in QT
collectionLayer.Layers.FirstOrDefault().LabelDefinitions.Add(labelDef)
The list of layers comes back as a list of Layer*, which don't contain the LabelsDefinitions members. Can you try casting the Layer* to a FeatureLayer*? I'm not certain if this will work or not, but it is worth a try. Something like:
dynamic_cast<FeatureLayer*>(collectionLayer->layers()->at(0))->labelDefinitions->append(labelDef);
I have added it as
dynamic_cast<FeatureLayer*>(collectionLayer->layers().at(0))->labelDefinitions()->append(labelDef); But How to enabel it..I am not able to see it