/// <summary> /// 获取指定层级下的瓦片索引矩阵范围 /// </summary> /// <param name="zoom"></param> /// <returns></returns> public static SizeLong GetTileMatrixSizeXY(int zoom) { SizeLong sMin = GetTileMatrixMinXY(zoom); SizeLong sMax = GetTileMatrixMaxXY(zoom); return(new SizeLong(sMax.Width - sMin.Width + 1, sMax.Height - sMin.Height + 1)); }
/// <summary> /// 获取指定层级的瓦片像素矩阵范围 /// </summary> /// <param name="zoom"></param> /// <returns></returns> public static SizeLong GetTileMatrixSizePixel(int zoom, SizeInt tileSize) { SizeLong s = GetTileMatrixSizeXY(zoom); return(new SizeLong(s.Width * tileSize.Width, s.Height * tileSize.Height)); }