gischild
路人甲
路人甲
  • 注册日期2005-08-11
  • 发帖数12
  • QQ
  • 铜币181枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1637回复:1

arcgis server中两个map控件互动??

楼主#
更多 发布于:2008-04-28 08:55
<P>我在page页中加了两个map控件,在事件中我加了下面的代码,在map1缩放时,Map2中的范围没有变化,请问该怎么样处理??万分谢谢!<BR>Protected Sub Map1_ExtentChanged(ByVal sender As Object, ByVal args As ESRI.ArcGIS.ADF.Web.UI.WebControls.ExtentEventArgs) Handles Map1.ExtentChanged<BR>        If (Not Map1.Extent Is Nothing) And (Not Map2.Extent Is Nothing) Then<BR>            Map2.Extent = Map1.Extent<BR>            Map2.Refresh()<BR>        End If</P>
<P>    End Sub</P>
喜欢0 评分0
cl991036
管理员
管理员
  • 注册日期2003-07-25
  • 发帖数5917
  • QQ14265545
  • 铜币29669枚
  • 威望217点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • GIS帝国铁杆
1楼#
发布于:2008-04-28 23:42
<P>arcgis server的鹰眼关联就可以看出其中的装换</P>

<P>    protected void Page_PreRenderComplete(object sender, EventArgs e)<BR>    {<BR>        // If no tasks have been defined, hide the tasks panel<BR>        if (TaskMenu.Items.Count == 0)<BR>            Tasks_Menu_Panel.Visible = false;<BR>        // check to see if any of the resource items are non-pooled<BR>        if (!Page.IsCallback || !Page.IsPostBack)<BR>        {<BR>            CloseHyperLink.Visible = HasNonPooledResources();<BR>            OverviewMap ov = Page.FindControl("OverviewMap1") as OverviewMap;<BR>            if (ov!=null ;; !OverviewMapResourceIsValid(ov))<BR>                ov.OverviewMapResource = Map1.PrimaryMapResource;<BR>        }<BR>        CopyrightTextHolder.Visible = HasCopyrightText();</P>
<P>    }<BR>    </P>
<P>    protected void Page_PreInit(object sender, EventArgs e)<BR>    {<BR>        // Make the overview enabled property match floatingpanel expanded property<BR>        FloatingPanel ovPanel = Page.FindControl("OverviewMap_Panel") as FloatingPanel;<BR>        if (ovPanel != null)<BR>        {<BR>            OverviewMap ov = ovPanel.FindControl("OverviewMap1") as OverviewMap;<BR>            if (ov != null)<BR>                ov.Enabled = ovPanel.Expanded;<BR>        }</P>
<P>    }</P>
没钱又丑,农村户口。头可断,发型一定不能乱。 邮箱:gisempire@qq.com
举报 回复(0) 喜欢(0)     评分
游客

返回顶部