SuperMap.Web.Mapping.TiledCachedISLayer.CreateUrl C# (CSharp) Method

CreateUrl() private method

private CreateUrl ( ) : void
return void
        private void CreateUrl( )
        {
            #region 构造一下真正的url
            StringBuilder builder = new StringBuilder();
            //当CachedUrl不设置时,就是用IS快速缓存;
            if (string.IsNullOrEmpty(CachedUrl))
            {
                builder.Append(this.Url);
                if (!Url.EndsWith("/"))
                {
                    builder.Append("/");
                }
                builder.Append("ajax/");
                builder.Append(this.MapName);
                builder.Append("/{0}/{1}/{2}/");
                builder.AppendFormat("{0}/" , TileSize);
                builder.Append(ImageFormat.ToString().ToLower());
                builder.Append("/0/");
                builder.Append(this.AntiAliasing.ToString().ToLower());
                builder.Append("/true/map.ashx?");
                builder.AppendFormat("redirect={0}" , this.Redirect.ToString().ToLower());
                builder.Append("&");
                builder.AppendFormat("transparent={0}" , this.Transparent.ToString().ToLower());
            }
            else//当设置CachedUrl时,就使用IS的简易缓存
            {
                builder.Append(this.CachedUrl);
                if (!CachedUrl.EndsWith("/"))
                {
                    CachedUrl += "/";
                }
                builder.AppendFormat("{0}_{1}x{1}" , this.MapName , this.TileSize);
                builder.Append("/{0}/{1}/{2}.");
                builder.AppendFormat("{0}" , ImageFormat);
            }
            #endregion

            this.uriFormat = builder.ToString();
        }