vb mapx5 沿線標註的實現方法

2021-05-23 20:38:37 字數 736 閱讀 1019

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 沿線 標註

php 時間獲取,PHP獲取當前時間的5種實現方式

在日期和時間函式中,unix 時間戳的獲取非常重要,時間戳是乙個字串行,是指格林尼治時間 1970年 01 月 01 日 00 時 00 分 00 秒 北京時間 1970 年 01 月 01 日 08 時 00 分 00 秒 起至現在的總毫秒數。下面介紹幾個獲取當前時間的函式。gmmktime gm...

pyqt5介面與邏輯分離 訊號槽的裝飾器實現方式

本文展示了 pyqt5 訊號槽的裝飾器實現方式 借鑑自 eirc6 乙個簡單的例子。實現功能 兩個數相加,顯示結果。如圖 必須self.inputspinbox2 qtwidgets.qspinbox form self.inputspinbox2.setgeometry qtcore.qrect ...

pyqt5介面與邏輯分離 訊號槽的裝飾器實現方式

本文展示了 pyqt5 訊號槽的裝飾器實現方式 借鑑自 eirc6 乙個簡單的例子。實現功能 兩個數相加,顯示結果。如圖 必須self.inputspinbox2 qtwidgets.qspinbox form self.inputspinbox2.setgeometry qtcore.qrect ...