${REST_ServerType_ServerStyle_Tile}

${REST_ServerType_ServerStyle_Description}

Exemplo n.º 1
0
        internal static string ToJson(ServerStyle result)
        {
            if (result == null)
            {
                return null;
            }

            string json = "{";
            List<string> list = new List<string>();

            list.Add(string.Format(CultureInfo.InvariantCulture, "\"fillBackOpaque\":{0}", result.FillBackOpaque.ToString().ToLower()));
            list.Add(string.Format(CultureInfo.InvariantCulture, "\"lineWidth\":{0}", result.LineWidth.ToString(CultureInfo.InvariantCulture)));
            list.Add(string.Format(CultureInfo.InvariantCulture, "\"fillBackColor\":{0}", ServerColor.ToJson(result.FillBackColor.ToServerColor())));
            list.Add(string.Format(CultureInfo.InvariantCulture, "\"fillForeColor\":{0}", ServerColor.ToJson(result.FillForeColor.ToServerColor())));
            list.Add(string.Format(CultureInfo.InvariantCulture, "\"markerAngle\":{0}", result.MarkerAngle.ToString(CultureInfo.InvariantCulture)));
            list.Add(string.Format(CultureInfo.InvariantCulture, "\"markerSize\":{0}", result.MarkerSize.ToString(CultureInfo.InvariantCulture)));
            list.Add(string.Format(CultureInfo.InvariantCulture, "\"fillGradientOffsetRatioX\":{0}", result.FillGradientOffsetRatioX.ToString(CultureInfo.InvariantCulture)));
            list.Add(string.Format(CultureInfo.InvariantCulture, "\"fillGradientOffsetRatioY\":{0}", result.FillGradientOffsetRatioY.ToString(CultureInfo.InvariantCulture)));
            list.Add(string.Format(CultureInfo.InvariantCulture, "\"lineColor\":{0}", ServerColor.ToJson(result.LineColor.ToServerColor())));
            list.Add(string.Format(CultureInfo.InvariantCulture, "\"fillOpaqueRate\":{0}", result.FillOpaqueRate));
            list.Add(string.Format(CultureInfo.InvariantCulture, "\"fillGradientMode\":\"{0}\"", result.FillGradientMode));
            list.Add(string.Format(CultureInfo.InvariantCulture, "\"fillSymbolID\":{0}", result.FillSymbolID));
            list.Add(string.Format(CultureInfo.InvariantCulture, "\"fillGradientAngle\":{0}", result.FillGradientAngle.ToString(CultureInfo.InvariantCulture)));
            list.Add(string.Format(CultureInfo.InvariantCulture, "\"markerSymbolID\":{0}", result.MarkerSymbolID));
            list.Add(string.Format(CultureInfo.InvariantCulture, "\"lineSymbolID\":{0}", result.LineSymbolID));


            json += string.Join(",", list.ToArray());
            json += "}";
            return json;
        }
Exemplo n.º 2
0
 /// <summary>${REST_ThemeDotDensity_constructor_D}</summary>
 public ThemeDotDensity()
 {
     Style = new ServerStyle { MarkerSize = 2 };
 }
 /// <summary>${iServer6_SetLayerStyleParameters_constructor_D}</summary>
 public SetLayerStyleParameters()
 {
     Style = new ServerStyle();
     HoldTime = 10;
 }