Hi,
I have a region(Feature) shared between US mainland and alasks.
Now i’m getting label in alaska,how can i show the label in mainland without effecting other regions labels.
Thanks.
Label display in mainland not in alaska
Hi Lalitya,
Thanks for your post,would you please override TextStyle.DrawCore with following code:
class SampleTextStyle : TextStyle
{
private string excludeLabel = "alaska";
protected override void DrawCore(IEnumerable<Feature> features, GeoCanvas canvas, System.Collections.ObjectModel.Collection<SimpleCandidate> labelsInThisLayer, System.Collections.ObjectModel.Collection<SimpleCandidate> labelsInAllLayers)
{
foreach (SimpleCandidate item in labelsInAllLayers)
{
if (item.OriginalText != excludeLabel)
{
…
}
}
}
}
If you have any more question, please feel free to let us know.
Best regards
Summer