Manages map tiles.
More...
|
static int | maxTileDownloads = 5 |
| The maximum number simultaneously downloading tiles.
|
|
static Action< OnlineMapsTile > | OnLoadFromCache |
| This event is used to load a tile from the cache. Use this event only if you are implementing your own caching system.
|
|
static Action | OnPreloadTiles |
| The event occurs after generating buffer and before update control to preload tiles for tileset.
|
|
static Action< OnlineMapsTile > | OnPrepareDownloadTile |
| This event is used in preparation for loading a tile.
|
|
static Action< OnlineMapsTile > | OnStartDownloadTile |
| An event that occurs when loading the tile. Allows you to intercept of loading tile, and load it yourself.
|
|
static Action< OnlineMapsTile > | OnTileLoaded |
| This event is occurs when a tile is loaded.
|
|
◆ Add()
Add a tile to the manager.
- Parameters
-
◆ GetTile() [1/2]
OnlineMapsTile OnlineMapsTileManager.GetTile |
( |
int | zoom, |
|
|
int | x, |
|
|
int | y ) |
Gets a tile for zoom, x, y.
- Parameters
-
zoom | Tile zoom |
x | Tile X |
y | Tile Y |
- Returns
- Tile or null
◆ GetTile() [2/2]
bool OnlineMapsTileManager.GetTile |
( |
int | zoom, |
|
|
int | x, |
|
|
int | y, |
|
|
out OnlineMapsTile | tile ) |
Gets a tile for zoom, x, y.
- Parameters
-
zoom | Tile zoom |
x | Tile X |
y | Tile Y |
tile | Tile |
- Returns
- True - success, false - otherwise
◆ GetTileKey()
static ulong OnlineMapsTileManager.GetTileKey |
( |
int | zoom, |
|
|
int | x, |
|
|
int | y ) |
|
static |
Gets a tile key for zoom, x, y.
- Parameters
-
zoom | Tile zoom |
x | Tile X |
y | Tile Y |
- Returns
- Tile key
◆ Remove()
◆ StartDownloadTile()
static void OnlineMapsTileManager.StartDownloadTile |
( |
OnlineMapsTile | tile | ) |
|
|
static |
Starts downloading of specified tile.
- Parameters
-
tile | Tile to be downloaded. |