/**/ /// <summary> /// 根据图层名找到图层 /// </summary> /// <param name="pGlobe"></param> /// <param name="layerName">图层名称</param> /// <returns>图层</returns> public static IFeatureLayer GetLayer(IGlobe pGlobe, string layerName) ... { IEnumLayer pLayers; pLayers = pGlobe.get_GlobeLayers(null, true, true, true); pLayers.Reset(); ILayer player = pLayers.Next(); while (player != null) ...{ if (player.Name == layerName) ...{ m_SearchFeatureLayer = (IFeatureLayer)player; } player = pLayers.Next(); } return m_SearchFeatureLayer; }