sex_is_zero
路人甲
路人甲
  • 注册日期2007-03-19
  • 发帖数3
  • QQ
  • 铜币114枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1065回复:0

请教怎么在MAPX中画多个点(VB)

楼主#
更多 发布于:2007-08-06 16:09
<P>代码:</P>
<P>Private Sub Command1_Click()<BR>Dim oLayer As MapXLib.Layer<BR>Dim oFtr As MapXLib.Feature<BR>Dim oPoints As MapXLib.Points<BR>Dim oPoint As MapXLib.Point<BR>Dim oDestPoints As New MapXLib.Points<BR>Dim oPoly As New MapXLib.Feature<BR>    Set oLayer = Map1.Layers(1)<BR>    oDestPoints.AddXY 0, -0.4<BR>    oDestPoints.Add oDestPoints(1)<BR>    oPoly.Attach Map1<BR>    oLayer.AddFeature oPoly<BR>    oDestPoints.AddXY 0, 0.4<BR>    oDestPoints.Add oDestPoints(2)<BR>    oPoly.Attach Map1<BR>    oLayer.AddFeature oPoly<BR>End Sub</P>
<P>这样只能画出一个点,刚开始学习,高手指教啊</P>
喜欢0 评分0
游客

返回顶部