Dear All,
I am able to plot label on map, for that I am using following code,
Dim CustomTextStyle As TextStyle = New TextStyle
Dim colName As String = drpField.Text.Trim 'List of column in drop down
Dim Layer As FeatureLayer = WinformsMap1.FindFeatureLayer("WorldLayer")
CustomTextStyle = TextStyles.CreateSimpleTextStyle(colName, CustomTextStyle.PointPlacement = PointPlacement.Center
CustomTextStyle.OverlappingRule = LabelOverlappingRule.NoOverlapping
CustomTextStyle.DuplicateRule = LabelDuplicateRule.UnlimitedDuplicateLabels
Layer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(CustomTextStyle)Layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
The above code placed label at desired position.
1. Now I want to change label with help of select column from dropdown (drpField) and click to show label, it shows label, but old label is also there, I want to before display the current label old label should be clear.
2. If user don't want to show any label, that should be clear on map.
Regards
Sanjay