Product: MapXtreme 2004/2005
Version: 6.0, 6.1, 6.2, 6.5
Platform: Not Platform Related
Category: Labels
Summary:
How to remove duplicate labels from a label layer.
Question:
How to remove duplicate labels from a label layer.
Answer:
C# Code:
VB.Net Code:
Dim fl As MapInfo.Mapping.FeatureLayer = Me.MapControl1.Map.Layers("USCTY_1k")
Dim labelLayer As New MapInfo.Mapping.LabelLayer("CityLabels")
Dim labelSource As New MapInfo.Mapping.LabelSource(fl.Table)
labelSource.DefaultLabelProperties.Caption = "State"
labelSource.DefaultLabelProperties.Visibility.AllowDuplicates = False
labelLayer.Sources.Append(labelSource)
Me.MapControl1.Map.Layers.Add(labelLayer)
Last Modified: 04/13/2006 02:46:29 PM
|