• 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

  • 相关阅读:
    【项目一 · 直播】 ☞ 3. 推流直播
    【项目一 · 直播】 ☞ 2. 拉流直播
    【Objective-C 篇】 ☞ 10. 代理设计模式
    高精度模板
    csp每日习题
    pat乙级每日习题
    dp-LIS LCS 模型
    线性dp
    归并排序应用-求逆序对数量
    dp-位移模型(数字三角形演变)
  • 原文地址:https://www.cnblogs.com/jetz/p/1247918.html
Copyright © 2020-2023  润新知