首 页文章中心下载中心繁體中文
设为首页
加入收藏
联系我们
您当前的位置:开源盛世-源代码下载网 -> 文章中心 -> GIS 专区 -> 文章内容 退出登录 用户管理
栏目导航
· VC++专区 · V B 专区
· GIS 专区 · PDA 专区
· 其他编程 · 网站开发类
· 数据库类 · 软件应用
· 网络安全 · 论文专区
· 综合资讯
热门文章
· Tab Control控件使用...
· 学生档案管理系统
· [图文] 排列组合公式
· UTF-8与GB2312之间的...
· DirectShow下载安装...
· Virtual PC 在PAE模...
· Windows2000终端服务...
· MapInfo上的GIS系统...
· Mapbasic参考手册索...
· MapX应用开发中文讲...
相关文章
· mapXtreme For Java...
· 成功解决mapxtrmem ...
· MapXTreme For Java...
· MapXtreme Java 版 ...
MapXtreme2004代码(简单专题图的显示)
作者:arui319  来源:http://www.blogcn.com/user16/arui319/blog/5829530  发布时间:2005-4-15 13:17:40  发布人:Polaris

减小字体 增大字体

MapControl1.Map.Clear();
MapGeosetLoader gl=new MapGeosetLoader(@"F:\test.gst");
MapControl1.Map.Load(gl);
//打开地图

MapControl1.Map.Load(new MapTableLoader(@"F:\test.tab"));
//打开test.tab地图文件

FeatureLayer lyrPnt=MapControl1.Map.Layers["test"] as FeatureLayer;
RangedTheme thm = new RangedTheme(lyrPnt,"PH__1999","ph",3,DistributionMethod.EqualCountPerRange);
lyrPnt.Modifiers.Insert(0,thm);
//定义一个RangedTheme

ThemeLegendFrame frame = LegendFrameFactory.CreateThemeLegendFrame("PH__1999","pp",thm);

Legend legend = MapControl1.Map.Legends.CreateLegend(new Size(5,5));
legend.Frames.Append(frame);
//定义一个Legend

//MapControl1.Map.Adornments.Append(legend);
//如果保留此句,MapControl1中将显示Legend

LegendControl1.Map = MapControl1.Map;
if (MapControl1.Map.Legends.Count > 0) 
{
 LegendControl1.Legend = MapControl1.Map.Legends[0];
}
//在LegendControl1控件中显示Legend

说明:这只是个简单的例子,对于不同的地图文件,具体代码有所不同,要修改一些地方。

End of《MapXtreme2004代码(简单专题图的显示)》

[] [返回上一页] [打 印] [收 藏]
 
∷相关“MapXtreme2004代码(简单专题图的显示)”文章评论∷
(评论内容只代表网友观点,与本站立场无关!) [更多评论...]
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 网站目录 鄂ICP备06007162
开源盛世 版权所有Copyright © 2003-2005 VSCodes.Com. All Rights Reserved.