vb+mapx5 沿线标注的简单实现方法,请教高手:如何任意控制字符间距?
Private Sub Map1_MapViewChanged()
Dim A As Layer
Dim B As Dataset
Set A = Map1.Layers.Item("图层名称")
Set B = Map1.DataSets.Add(miDataSetLayer, A)
Set A.LabelProperties.Dataset = B
Set A.LabelProperties.DataField = B.Fields.Item("字段名称")
A.LabelProperties.Position = miPositionBR '标签显示的位置
A.LabelProperties.LabelAlong = 2 '沿线显示
A.LabelProperties.LabelPartialObjects = True '只要图元显示在屏幕上,就显示
A.LabelProperties.Style.TextFontDblSpace = True '可选,双倍字间距
A.LabelProperties.Style.TextFontColor = RGB(255, 0, 0) '可选,字体颜色
A.AutoLabel = True
End Sub
Technorati 标签: VB MapX5 沿线 标注