MapInfo.Data.Table activeMapTable = MapInfo.Engine.Session.Current.Catalog.GetTable("layerName");
MapInfo.Mapping.LabelLayer lbLayer = new MapInfo.Mapping.LabelLayer("lbbLayer", "lbbLayer");
MapInfo.Mapping.LabelSource lbSource = new MapInfo.Mapping.LabelSource(activeMapTable);
//set label\'s style
lbSource.DefaultLabelProperties.Style.Font.Name = "宋体";//字体
lbSource.DefaultLabelProperties.Style.Font.Size = 9;//大小
lbSource.DefaultLabelProperties.Layout.Alignment = MapInfo.Text.Alignment.CenterRight;//标注显示的位置
lbSource.DefaultLabelProperties.Layout.Offset = 7;//偏移量
lbSource.DefaultLabelProperties.Style.Font.ForeColor = System.Drawing.Color.Black;//标注字颜色 lbSource.DefaultLabelProperties.Style.Font.TextEffect=MapInfo.Styles.TextEffect.Box;//标注背景,Box为方框,Halo为光晕
lbSource.DefaultLabelProperties.Style.Font.BackColor = System.Drawing.Color.Yellow;//方框或者光晕的颜色
lbSource.DefaultLabelProperties.Style.Font.Shadow = false;//显示阴影
lbSource.DefaultLabelProperties.Caption = "xx";//标注字段
lbLayer.Sources.Append(lbSource);
biaoZhu = lbLayer.Alias;
MainMap.Map.Layers.Add(lbLayer);
分享到:
相关推荐
MapXTreme电子地图C#2008技术笔记总结
目标 • 安装JDK 1.5 • 安装MapXtreme Java 4.8 • 安装Eclipse • 设置Eclipse • 创建第一个Servlet 程序 • 创建第一个MapXtreme Java Servlet 程序
MapXtreme2008中文教程详细介绍了MapXtreme2008的各方面特性,并结合例子介绍了MapXtreme的使用方法,附注了MapXtreme的各项新特性和指标。
c#中用MapXtreme开发的地理信息系统 运用MAPXtreme与C#开发地图设计(可做网站)
.net2008 c# mapxtreme 加载地图,传进2个点在图层上画线
MapXtreme2008 c# 电子书
将mapxtreme680.lic放在目录 C:\Program Files\Common Files\MapInfo\MapXtreme\6.8.0\ mapXtreme2008就可以正常使用了
MapXtreme 2008是开发地图和可地图化应用程序的理想...利用MapXtreme 2008,用户还能够开发丰富的AJAX Web应用,并且能够充分利用地图技术方面的最新成果,包括半透明层、曲线标记、功能增强的标注功能和抗锯齿等功能。
GIS开发利器-MapXtreme 2008
MapXtreme 2008 V7.0.0 开发人员指南
1、安装MapXtreme2008试用版。 2、复制 mapxtreme680.lic 到:"C:\Program Files\Common Files\MapInfo\MapXtreme\6.8.0
1.MapXtreme2008鹰眼 2.VS2005C#做的 3.Winform的 3.完全可以运行
MapXtreme 2008 SCP Merge Modules之MapInfoCoreResCHS_6.8.0.msm
MapXtreme 2008 SCP 安装序列号,你懂的,不解释,谁用谁知道!
mapxtreme2008,releasenotes
介绍了基于C#和mapxtreme开发gis的一些基本功能的代码
通过MapXtreme,用户可以在Internet/Intranet上发布基于电子地图的应用系统。所有的最终用户只需在自己的机器上安装浏览器即可访问存放在服务器端的空间数据,用户可以很方便地对地图进行放大、缩小、漫游、查询、...
mapxtreme2008用户指南,比较实用的,目前也只有这方面的资料了。
C_和Mapxtreme的webgis源码文件仅供学习探讨