예제 #1
0
 public AsyncTileRequest(Uri uri, TileInfo tileInfo, AsyncTileRequestCompletedHandler callback)
 {
     this.uri      = uri;
     this.callback = callback;
 }
예제 #2
0
 public TileInfoEventArgs(TileInfo tileInfo)
 {
     this.tileInfo = tileInfo;
 }
예제 #3
0
        private string GetDirectoryName(TileInfo tileInfo)
        {
            string level = tileInfo.ZoomLevel.Id.ToString(CultureInfo.InvariantCulture);

            return(Path.Combine(directory, level, tileInfo.Column.ToString(CultureInfo.InvariantCulture)));
        }
예제 #4
0
 public string GetCachedTileFilePathName(TileInfo tileInfo)
 {
     return(Path.Combine(GetDirectoryName(tileInfo), string.Format(CultureInfo.InvariantCulture, "{0}.{1}", tileInfo.Row, format.ToString())));
 }
예제 #5
0
 protected abstract Uri GetUriCore(TileInfo tileInfo);
예제 #6
0
 public Uri GetTileUri(TileInfo tileInfo)
 {
     return(GetUriCore(tileInfo));
 }