${IS6_GetMapStatusResult_Title}

${IS6_GetMapStatusResult_Description}

        /// <summary>${IS6_GetMapStatusResult_method_FromJson_D}</summary>
        /// <param name="jsonObject">${IS6_GetMapStatusResult_method_FromJson_param_jsonObject}</param>
        /// <returns>${IS6_GetMapStatusResult_method_FromJson_return}</returns>
        public static GetMapStatusResult FromJson(JsonObject jsonObject)
        {
            if (jsonObject == null)
            {
                return null;
            }
            GetMapStatusResult result = new GetMapStatusResult();

            result.MapName = (string)jsonObject["mapName"];
            result.MapBounds = ToRectangle2D((JsonObject)jsonObject["mapBounds"]);

            result.ReferViewBounds = ToRectangle2D((JsonObject)jsonObject["referViewBounds"]);
            result.ReferBounds = ToRectangle2D((JsonObject)jsonObject["referBounds"]);
            result.ReferScale = (double)jsonObject["referScale"];
            result.ReferViewer = ToRect((JsonObject)jsonObject["referViewer"]);

            result.ImageFormat = (string)jsonObject["imageFormat"];
            result.AntiAlias = (bool)jsonObject["antiAlias"];

            //MapNames[]
            if (jsonObject.ContainsKey("mapNames") && jsonObject["mapNames"] != null)
            {
                result.MapNames = new List<string>();
                for (int i = 0; i < jsonObject["mapNames"].Count; i++)
                {
                    result.MapNames.Add((string)jsonObject["mapNames"][i]);
                }
            }

            //Layer[]
            if (jsonObject.ContainsKey("layers") && jsonObject["layers"] != null && jsonObject["layers"].Count > 0)
            {
                result.ServerLayers = new List<ServerLayer>();
                for (int i = 0; i < jsonObject["layers"].Count; i++)
                {
                    result.ServerLayers.Add(ServerLayer.FromJson((JsonObject)jsonObject["layers"][i]));
                }
            }

            return result;
        }
 private void request_Completed(object sender, RequestEventArgs e)
 {
     JsonObject jsonObject = (JsonObject)JsonObject.Parse(e.Result);
     GetMapStatusResult result = GetMapStatusResult.FromJson(jsonObject);
     LastResult = result;
     GetMapStatusEventArgs args = new GetMapStatusEventArgs(result, e.Result, e.UserState);
     OnProcessCompleted(args);
 }
 /// <summary>${IS6_GetMapStatusEventArgs_constructor_D}</summary>
 public GetMapStatusEventArgs(GetMapStatusResult result, string originResult, object token)
     : base(token)
 {
     Result = result;
     OriginResult = originResult;
 }