MapX dual tagging

Source: Internet
Author: User

Dim lyr as Layer
Private sub commandementclick ()
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 \ Observatory. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.