当前位置: 首页>>代码示例>>C#>>正文


C# ILayer.RegisterWithMapServer方法代码示例

本文整理汇总了C#中ILayer.RegisterWithMapServer方法的典型用法代码示例。如果您正苦于以下问题:C# ILayer.RegisterWithMapServer方法的具体用法?C# ILayer.RegisterWithMapServer怎么用?C# ILayer.RegisterWithMapServer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ILayer的用法示例。


在下文中一共展示了ILayer.RegisterWithMapServer方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: FingDrawEllipse

        public void FingDrawEllipse()
        {
            long result;
            Int32 result2;
            Draw callback = new Draw();
               // callback.parent = this;

            fvw.Map MyMap = new fvw.Map();
            result = MyMap.SetDispatchPtr(this);

            System.Diagnostics.Debug.WriteLine("mothafing " + result);

            IconHandle = -1;
            ToolbarHandle = -1;
            LineHandle = -1;
            LayerHandle = -1;

            MyLayer = new fvw.LayerClass();

                System.Diagnostics.Debug.WriteLine("whatcha think? " + result);

            result2 = MyLayer.RegisterWithMapServer("Sample Layer", 0, this);
            System.Diagnostics.Debug.WriteLine("whatcha think? " + result2);
        }
开发者ID:kterry7484,项目名称:FalconPoint,代码行数:24,代码来源:Draw.cs

示例2: CreateLayer

        // create a new layer, return the handle, and add info to list
        // Creates a new layer
        public int CreateLayer(string _cotID)
        {
            int result = 50; // result is used for debugging... i used 50 so that i could tell that -1, 0, or 1 was the output... nothing special about 50
            FP_point = new LayerClass();

            result = FP_point.RegisterWithMapServer("falconpoint", 0, _FPmainAddr); // result is used for debugging
            currentLayerHandle = FP_point.CreateLayer("FP layer");

            System.Diagnostics.Debug.WriteLine("registered with map server result = " + currentLayerHandle); // used for debugging... shows registration result in output window

            temp_layerList.Layer = currentLayerHandle; // temp list item
            temp_layerList.cotID = _cotID; // temp list item

            FP_layerList.Add(temp_layerList); // add temp items to real list

            temp_layerList = new LayerList(); // create a new temp list... otherwise we would keep writing over the old list

            return currentLayerHandle; // return the newly created layer handle ... should be something like 102, 103..
        }
开发者ID:jwallwhitworth,项目名称:FalconPoint,代码行数:21,代码来源:COTsListener.cs


注:本文中的ILayer.RegisterWithMapServer方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。