Exemple #1
0
        /// <summary>
        /// 获取默认符号
        /// </summary>
        /// <param name="geometryType"></param>
        /// <param name="color"></param>
        /// <returns></returns>
        private static ISymbol GetDefaultSymbol(esriGeometryType geometryType, IColor color)
        {
            switch (geometryType)
            {
            case esriGeometryType.esriGeometryLine:
            case esriGeometryType.esriGeometryPolyline:
                return(SymbolCreate.GetSimpleLineSymbol(color, 3) as ISymbol);

            case esriGeometryType.esriGeometryPoint:
                return(SymbolCreate.GetSimpleMarkerSymbol(color, null, 6, esriSimpleMarkerStyle.esriSMSCircle) as ISymbol);

            case esriGeometryType.esriGeometryPolygon:
                return(SymbolCreate.GetSimpleFillSymbol(color) as ISymbol);
            }
            return(null);
        }