Exemple #1
0
 protected TileSource(TileSchema tileSchema, ITileCache <byte[]> tileCache, TileDownloader tileDownloader, string id)
     : base(id)
 {
     this.Schema         = tileSchema;
     this.tileCache      = tileCache ?? new MemoryTileCache <byte[]>();
     this.tileDownloader = this.tileDownloader ?? new ImageTileDownloader(tileSchema);
 }
Exemple #2
0
 protected TileSource(TileSchema tileSchema, string id)
     : base(id)
 {
     this.tileSchema               = tileSchema;
     this.tileDownloader           = this.tileDownloader ?? new ImageTileDownloader();
     this.tileDownloader.TileCache = new MemoryTileCache <byte[]>();
     this.tileFormat               = TileFormat.Png;
 }
Exemple #3
0
 protected TileSource(TileSchema tileSchema, ITileCache <byte[]> tileCache, TileDownloader tileDownloader)
     : this(tileSchema, tileCache, tileDownloader, Utility.CreateUniqueId())
 {
 }
Exemple #4
0
 protected TileSource(TileSchema tileSchema, TileDownloader tileDownloaer)
     : this(tileSchema, null, tileDownloaer)
 {
 }