public Toolbar() { InitializeComponent(); MapDocEditor = new MapDocEditor(m_catalog) { IsPopup = true }; m_mapDocDataViewer = new MapDocDataViewer() { IsPopup = true }; //, MapDocEditorObj = MapDocEditor }; m_mapDocConditionInput = new ConditionInput(m_mapDocDataViewer) { IsPopup = true }; this.BorderThickness = new Thickness(0); LayerEditor = new LayerEditor(m_catalog) { IsPopup = true }; m_layerDataViewer = new LayerDataViewer() { IsPopup = true }; //, LayerEditorObj = LayerEditor }; m_layerConditionInput = new LayerConditionInput(m_layerDataViewer) { IsPopup = true }; }
/// <summary> /// 构造函数 /// </summary> public MapgisToolSubMenu() { InitializeComponent(); fishMenu = new FishEyeMenuH(); this.ResizeControl(); this.LayoutRoot.Children.Add(fishMenu); this.Loaded += new RoutedEventHandler(OnLoaded); MapDocEditor = new MapDocEditor(catalog) { IsPopup = true }; mapDocDataViewer = new MapDocDataViewer() { IsPopup = true }; //, MapDocEditorObj = MapDocEditor }; mapDocConditionInput = new ConditionInput(mapDocDataViewer) { IsPopup = true }; this.BorderThickness = new Thickness(0); LayerEditor = new LayerEditor(catalog) { IsPopup = true }; layerDataViewer = new LayerDataViewer() { IsPopup = true }; //, LayerEditorObj = LayerEditor }; layerConditionInput = new LayerConditionInput(layerDataViewer) { IsPopup = true }; }
/// <summary> /// 构造函数 /// </summary> public MapgisToolSubMenu() { MapDocEditor = new MapDocEditor(catalog) { IsPopup = true }; mapDocDataViewer = new MapDocDataViewer() { IsPopup = true }; mapDocConditionInput = new ConditionInput(mapDocDataViewer) { IsPopup = true }; this.Loaded += new RoutedEventHandler(OnLoaded); LayerEditor = new LayerEditor(catalog) { IsPopup = true }; layerDataViewer = new LayerDataViewer() { IsPopup = true }; layerConditionInput = new LayerConditionInput(layerDataViewer) { IsPopup = true }; }
/// <summary> /// 地图加载就绪事件 /// </summary> /// <param name="e"></param> void iMSMap1_MapReady(IMSMapEvent e) { if (!DesignerProperties.IsInDesignTool) { //地图容器右键菜单添加一项:取消鼠标状态 this.iMSMap1.SetInfoText(" 选择几何查询类型,然后查询;右键菜单“取消鼠标状态”", Colors.Black); MenuItem item = new MenuItem(); item.Header = "取消鼠标状态"; this.iMSMap1.ContextMenu.Items.Add(item); item.Click += new RoutedEventHandler(item_Click); //初始化查询结果显示控件 layer_dataView = new LayerDataViewer() { activeLayer = this.vectorLayer, GraphicsLayer = this.graphicsLayer }; //设置图层状态 CSetEnumLayerStatus setLayerStatus; //设置状态更新参数 setLayerStatus = new CSetEnumLayerStatus(); setLayerStatus.GdbIndex = 0;//图层所在gdb数据库索引号 //设置索引号为0的图层状态:可查询 setLayerStatus.LayerStatus = new EnumLayerStatus[1]; setLayerStatus.LayerStatus[0] = EnumLayerStatus.Editable; //调用矢量图层的设置图层状态方法,设置图层状态 this.vectorLayer.SetEnumLayerStatus(setLayerStatus, onSetSingleLayerStatus); } }
/// <summary> /// 地图加载就绪事件 /// </summary> /// <param name="e"></param> void iMSMap1_MapReady(IMSMapEvent e) { if (!DesignerProperties.IsInDesignTool) { //初始化查询结果显示控件 layer_dataView = new LayerDataViewer() { activeLayer = this.vectorLayer, GraphicsLayer = this.graphicsLayer }; } }
/// <summary> /// 地图加载就绪事件 /// </summary> /// <param name="e"></param> void iMSMap1_MapReady(IMSMapEvent e) { if (!DesignerProperties.IsInDesignTool) { //初始化查询结果显示控件 layer_dataView = new LayerDataViewer() { activeLayer = this.vectorLayer, GraphicsLayer = this.graphicsLayer }; //地图容器右键菜单添加一项:取消鼠标状态 this.iMSMap1.SetInfoText(" 选择几何查询类型,然后查询;右键菜单“取消鼠标状态”", Colors.Black); MenuItem item = new MenuItem(); item.Header = "取消鼠标状态"; this.iMSMap1.ContextMenu.Items.Add(item); item.Click += new RoutedEventHandler(item_Click); } }
/// <summary> /// 显示结果记录集 /// </summary> /// <param name="rltName"></param> private void ShowResult(string rltName) { if (layerDataViewer1 == null) { layerDataViewer1 = new LayerDataViewer() { IsPopup = true } } ; layerDataViewer1.IMSCatalog = this.IMSCatalog1; if (this.layerDataViewer1 == null) { MessageBox.Show("layerDataViewer属性为空!请创建LayerDataViewer控件!"); } this.layerDataViewer1.GraphicsLayer = GraphicsLayerObj; this.layerDataViewer1.ShowLayerAttRecord(rltName, this._clipLayerAcsInfo.LayerInfoList[0].LayerType, this._serverAddr); }
/// <summary> /// 返回叠加结果图层的数据 /// </summary> /// <param name="rltName"></param> private void onShow(string rltLayerName) { if (layerDataViewer == null) { layerDataViewer = new LayerDataViewer() { IsPopup = true } } ; layerDataViewer.IMSCatalog = this.IMSCatalog1; if (this.layerDataViewer == null) { MessageBox.Show("layerDataViewer属性为空!请创建LayerDataViewer控件!"); } this.layerDataViewer.GraphicsLayer = GraphicsLayerObj; XClsType layerType = this.dataType.SelectionBoxItem.ToString() == "简单要素类" ? XClsType.SFeatureCls : XClsType.FeatureCls; this.layerDataViewer.ShowLayerAttRecord(rltLayerName, layerType, this.vectorObj.ServerAddress); }
/// <summary> /// 地图加载就绪事件 /// </summary> /// <param name="e"></param> void iMSMap1_MapReady(IMSMapEvent e) { if (!DesignerProperties.IsInDesignTool) { //初始化查询结果显示控件 layer_dataView = new LayerDataViewer() { activeLayer = this.vectorLayer, GraphicsLayer = this.graphicsLayer }; //设置图层状态 CSetEnumLayerStatus setLayerStatus; //设置状态更新参数 setLayerStatus = new CSetEnumLayerStatus(); setLayerStatus.GdbIndex = 0;//图层所在gdb数据库索引号 //设置索引号为0的图层状态:可查询 setLayerStatus.LayerStatus = new EnumLayerStatus[1]; setLayerStatus.LayerStatus[0] = EnumLayerStatus.Editable; //调用矢量图层的设置图层状态方法,设置图层状态 this.vectorLayer.SetEnumLayerStatus(setLayerStatus, onSetSingleLayerStatus); } }
public BufferAnalyse() { InitializeComponent(); this.m_layerDataViewer = new LayerDataViewer(); dialogPanel1.OnClose += new RoutedEventHandler(Close); }