mapx+vb实战摘要(五)
2024-07-21 02:20:37
供稿:网友
 
1如何修改柱状专题图的样式?
map1.datasets.item(dsname).themes("trafficflubar").properties.size = barsize
map1.datasets.item(dsname).themes("trafficflubar").properties.barwidth = barwidth
map1.datasets.item(dsname).themes("trafficflubar").themeproperties.multivarcategories.item(1).style.regioncolor = smalltruck_color
map1.datasets.item(dsname).themes("trafficflubar").themeproperties.multivarcategories.item(2).style.regioncolor = middletruck_color
map1.datasets.item(dsname).themes("trafficflubar").themeproperties.multivarcategories.item(3).style.regioncolor = bigtruck_color
2如何修改饼状专题图的样式?
map1.datasets.item(dsname).themes("trafficflupiebar").properties.size = piebarsize
'map1.datasets.item(dsname).themes("trafficflupiebar").properties.width = piebarwidth
map1.datasets.item(dsname).themes("trafficflupiebar").themeproperties.multivarcategories.item(1).style.regioncolor = smalltruck_color
map1.datasets.item(dsname).themes("trafficflupiebar").themeproperties.multivarcategories.item(2).style.regioncolor = middletruck_color
map1.datasets.item(dsname).themes("trafficflupiebar").themeproperties.multivarcategories.item(3).style.regioncolor = bigtruck_color
map1.datasets.item(dsname).themes("trafficflupiebar").themeproperties.multivarcategories.item(4).style.regioncolor = smallcar_color
3如何修改标注的样式?
 set ostyle = new mapxlib.style
 ostyle.textfont.size = 12
 ostyle.textfont.bold = true
 ostyle.symbolfontcolor = vbwhite
 ostyle.textfontbackcolor = vbblue
 ostyle.textfontopaque = true
 
 map1.annotations.addtext(rs(showfield), lyr.selection(1).centerx, lyr.selection(1).centery, 3).graphic.style = ostyle
 (白字黑底)
作者blog:http://blog.csdn.net/ppp80/