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

GetTileUrl() public method

${mapping_TiledCachedISLayer_method_getTileUrl_D}
public GetTileUrl ( int indexX, int indexY, int level ) : string
indexX int ${mapping_TiledCachedISLayer_method_param_indexX_D}
indexY int ${mapping_TiledCachedISLayer_method_param_indexY_D}
level int ${mapping_TiledCachedISLayer_method_param_level_D}
return string
        public override string GetTileUrl(int indexX , int indexY , int level)
        {
            string uri = string.Empty;
            if (!string.IsNullOrEmpty(this.uriFormat))
            {
                if (string.IsNullOrEmpty(CachedUrl))
                {
                    double scale = Scales[level];
                    //保证精度和IS一致
                    string tempScale = scale.ToString("R" , NumberFormatInfo.InvariantInfo);
                    uri = String.Format(this.uriFormat , tempScale , indexX , indexY);
                }
                else
                {
                    double scale = 1 / Scales[level];
                    uri = String.Format(this.uriFormat , scale , indexX , indexY);
                }
            }
            return uri;
        }