本文整理汇总了C#中ILayer.CreateLayer方法的典型用法代码示例。如果您正苦于以下问题:C# ILayer.CreateLayer方法的具体用法?C# ILayer.CreateLayer怎么用?C# ILayer.CreateLayer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ILayer
的用法示例。
在下文中一共展示了ILayer.CreateLayer方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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..
}