Class TileSeeder
Populates a tile cache by requesting all possible tiles for a given in map in a multi-threaded manner
Inheritance
System.Object
TileSeeder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OSGeo.MapGuide.MaestroAPI.Tile
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public class TileSeeder
Examples
This example shows how to seed a tile cache
IServerConnection conn;
...
ITileService tileSvc = (ITileService)conn.GetService((int)ServiceType.Tile);
IMapDefinition mapDef = (IMapDefinition)conn.ResourceService.GetResource("Library://Path/To/MyTiled.MapDefinition");
TileSeederOptions options = new TileSeederOptions();
TileWalkOptions walkOptions = new TileWalkOptions(mapDef);
ITileWalker walker = new DefaultTileWalker(walkOptions);
TileSeeder seeder = new TileSeeder(tileSvc, walker, options);
TileSeedStats stats = seeder.Run();
Constructors
| Improve this Doc View SourceTileSeeder(ITileService, ITileWalker, TileSeederOptions)
Constructs a new instance
Declaration
public TileSeeder(ITileService tileSvc, ITileWalker walker, TileSeederOptions options)
Parameters
Type | Name | Description |
---|---|---|
ITileService | tileSvc | |
ITileWalker | walker | |
TileSeederOptions | options |
Properties
| Improve this Doc View SourceRandomizeRequests
If true, the list of tiles to fetch/seed will be randomized before seeding begins
Declaration
public bool RandomizeRequests { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceRun(IProgress<TileProgress>)
Populates the tile cache for the configured tiled map definition or tile set
Declaration
public TileSeedStats Run(IProgress<TileProgress> progress = null)
Parameters
Type | Name | Description |
---|---|---|
System.IProgress<TileProgress> | progress |
Returns
Type | Description |
---|---|
TileSeedStats |
RunAsync(IProgress<TileProgress>)
Populates the tile cache for the configured tiled map definition or tile set
Declaration
public async Task<TileSeedStats> RunAsync(IProgress<TileProgress> progress = null)
Parameters
Type | Name | Description |
---|---|---|
System.IProgress<TileProgress> | progress |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TileSeedStats> |