Hi Pierre-Antoine,
In your scenario, you should create a custom TextStyle and override the GetLabelingCandidateCore method.
Sample code is below:
protected override Collection<LabelingCandidate> GetLabelingCandidateCore(Feature feature, GeoCanvas canvas)
{
Collection<LabelingCandidate> candidatesCollection = new Collection<LabelingCandidate>();
// Use your own logic to generate LabelingCandidate and change the CenterPoint property of LabelingCandidate
return candidatesCollection;
}
By default, we use Feature's Centroid as LabelingCandidate's CenterPoint. You need to customize this logic according to your scenario.
Thanks,
Ivan