• Mapx实现双标注


      Dim lyr As Layer
    Private Sub Command1_Click()
     Dim ds As MapXLib.Dataset
      Set ds = Map1.DataSets.Item(1)
      lyr.LabelProperties.Overlap = True
      lyr.LabelProperties.Position = miPositionBC
      lyr.LabelProperties.Offset = 5
      lyr.LabelProperties.Style.TextFont.Size = 10
      lyr.LabelProperties.Style.TextFontColor = RGB(255, 0, 0)
      lyr.AutoLabel = True
       Set lyr.LabelProperties.Dataset = ds
      lyr.Visible = True
      Set lyr.LabelProperties.DataField = ds.Fields("f_value")
      'Map1.Layers.Item("观测站").Visible = False
      MsgBox lyr.Name
     
    End Sub

    Private Sub Command2_Click()
      Map1.CurrentTool = miZoomInTool
    End Sub

    Private Sub Form_Load()
        ChDrive App.Path
      ChDir App.Path
      Map1.GeoSet = "map/all.gst"
     
        Dim li As New MapXLib.LayerInfo
      li.Type = miLayerInfoTypeTab
      li.AddParameter "FileSpec", App.Path & "\Map\all\data\观测站.tab"
      li.AddParameter "Visible", False
      li.AddParameter "AutoCreateDataset", True
      li.AddParameter "DatasetName", "ll"
        'MsgBox Map1.Layers.Count
     
      Set lyr = Map1.Layers.Add(li)
      'MsgBox Map1.Layers.Count
    End Sub

  • 相关阅读:
    Python 三级菜单
    linux 下按文件类型删除
    linux 做内网端口映射
    ss
    fio
    libXtst.so.6 is needed by teamviewer-12.0.76279-0.i686
    copy 浅复制 与深复制
    Git 使用方法
    关于 爬虫使用 urllib.urlopen 提交默认 User-Agent值
    Python 官方模块文档
  • 原文地址:https://www.cnblogs.com/jetz/p/1247918.html
Copyright © 2020-2023  润新知