追风浪子
路人甲
路人甲
  • 注册日期2004-06-08
  • 发帖数166
  • QQ
  • 铜币782枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1663回复:3

IMaps 怎么用?

楼主#
更多 发布于:2004-08-28 16:14
<P>在new   MapsClass时,会出现因mapsclass()是保护级别的类而无法使用,那为高手知道怎么实例化一个mapsclass</P>
<img src="images/post/smile/dvbbs/em12.gif" /><img src="images/post/smile/dvbbs/em12.gif" /><img src="images/post/smile/dvbbs/em12.gif" /><img src="images/post/smile/dvbbs/em12.gif" />
喜欢0 评分0
追风浪子
路人甲
路人甲
  • 注册日期2004-06-08
  • 发帖数166
  • QQ
  • 铜币782枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2004-08-30 09:42
<P>怎么没人支持一下啊,我狂顶顶.......</P><P>这段时间在学IPageLayoutControl,我想把IMapControl里的map传给IPageLayoutControl,如果用IPageLayoutControl.LoadMxFile "C:\temp\myDocument.pmf", "myPassword",那么IPageLayoutControl和IMapControl里的图就不能同步啦,并且增加系统的开销.所以我想用IPageLayout .ReplaceMaps(Maps)来实现这个过程....但苦于IMapsClass()是保护级别的类,无法在c#,vb.net里实例化,也没找到其他的接口转变.....不知道高手们在这是怎么做的...还请赐教.....谢谢!!!!</P><img src="images/post/smile/dvbbs/em08.gif" /><img src="images/post/smile/dvbbs/em08.gif" /><img src="images/post/smile/dvbbs/em08.gif" /><img src="images/post/smile/dvbbs/em08.gif" /><img src="images/post/smile/dvbbs/em08.gif" /><img src="images/post/smile/dvbbs/em08.gif" /><img src="images/post/smile/dvbbs/em08.gif" /><img src="images/post/smile/dvbbs/em08.gif" /><img src="images/post/smile/dvbbs/em08.gif" /><img src="images/post/smile/dvbbs/em08.gif" />
举报 回复(0) 喜欢(0)     评分
gis
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15951
  • QQ
  • 铜币25345枚
  • 威望15368点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
2楼#
发布于:2004-08-31 08:25
有看过自带的几个例子吗?
GIS麦田守望者,期待与您交流。
举报 回复(0) 喜欢(0)     评分
rcads
路人甲
路人甲
  • 注册日期2004-05-19
  • 发帖数92
  • QQ
  • 铜币2526枚
  • 威望0点
  • 贡献值0点
  • 银元0个
3楼#
发布于:2004-08-31 11:18
<P>可看下面的例子“C:\Program Files\ArcGIS\DeveloperKit\samples\Controls\PageLayoutControl\CopyFocusMap”.</P><P>This sample demonstrates setting the PageLayoutControl's FocusMap and using the IObjecyCopy object to overwrite the MapControl's Map object with a copy of the PageLayoutControl's FocusMap. The Map object has to copied because the MapControl and PageLayoutControl are unable to share the same ActiveView at the same time.</P><P>但具体实现的时候,如果再涉及到toccontrol,会很麻烦的说。</P>
举报 回复(0) 喜欢(0)     评分
游客

返回顶部