private void axMapControl1_OnFullExtentUpdated(object sender, IMapControlEvents2_OnFullExtentUpdatedEvent e) { //拷贝主地图到鹰眼窗口 CopyAndOverwriteMap(); CopyAndOverwriteLayoutMap(); }
private void axMapControl1_OnFullExtentUpdated(object sender, IMapControlEvents2_OnFullExtentUpdatedEvent e) { this.axMapControl2.ClearLayers(); for (int i = this.axMapControl1.LayerCount - 1; i >= 0; i--) { this.axMapControl2.AddLayer(this.axMapControl1.get_Layer(i)); } this.axMapControl2.Extent = this.axMapControl1.FullExtent; //this.axMapControl2.Refresh(); }
//地图范围更新事件 private void axMapControl_1_OnFullExtentUpdated(object sender, IMapControlEvents2_OnFullExtentUpdatedEvent e) { //Cbx_Scale显示的地图比例尺更新 repositoryItem_Cbx_Scale.NullText = FunScaleInsertDot(); }
private void axMapControl1_OnFullExtentUpdated(object sender, IMapControlEvents2_OnFullExtentUpdatedEvent e) { }
private void mainMapControl_OnFullExtentUpdated(object sender, IMapControlEvents2_OnFullExtentUpdatedEvent e) { //得到当前视图范围 pEnv = (IEnvelope)e.newEnvelope; DrawRectangle(pEnv); }
//主地图:刷新地图 private void axMapControlMainMap_OnFullExtentUpdated(object sender, IMapControlEvents2_OnFullExtentUpdatedEvent e) { axMapControlMainMap.Refresh(); }
private void axMapControl2_OnFullExtentUpdated(object sender, IMapControlEvents2_OnFullExtentUpdatedEvent e) { IElement element = m_AOI as IElement; if (element != null) { element.Geometry = axMapControl2.Extent.Envelope; } }
public void axMapControl1_OnFullExtentUpdated(AxMapControl axMapControl1, AxMapControl axMapControl2, object sender, IMapControlEvents2_OnFullExtentUpdatedEvent e, IEnvelope origin_ipenv) { //获取鹰眼图层 axMapControl2.AddLayer(GetOverviewLayer(axMapControl1, axMapControl2, axMapControl1.Map)); // 设置 MapControl 显示范围至数据的全局范围 axMapControl2.Extent = origin_ipenv; // 刷新鹰眼控件地图 axMapControl2.Refresh(); }
private void axMapControl1_OnFullExtentUpdated(object sender, IMapControlEvents2_OnFullExtentUpdatedEvent e) { InstantiationOfOvewView.axMapControl1_OnFullExtentUpdated(axMapControl1, axMapControl2, sender, e, origin_ipenv); }