Online Maps  v3
OnlineMapsTileManager Class Reference

Manages map tiles More...

Public Member Functions

OnlineMapsTile GetTile (int zoom, int x, int y)
 Gets a tile for zoom, x, y. More...
 
bool GetTile (int zoom, int x, int y, out OnlineMapsTile tile)
 Gets a tile for zoom, x, y. More...
 

Static Public Member Functions

static ulong GetTileKey (int zoom, int x, int y)
 Gets a tile key for zoom, x, y. More...
 
static void StartDownloadTile (OnlineMapsTile tile)
 Starts dowloading of specified tile. More...
 

Static Public Attributes

static int maxTileDownloads = 5
 The maximum number simultaneously downloading tiles. More...
 
static Action OnPreloadTiles
 The event occurs after generating buffer and before update control to preload tiles for tileset. More...
 
static Action< OnlineMapsTileOnStartDownloadTile
 An event that occurs when loading the tile. Allows you to intercept of loading tile, and load it yourself. More...
 
static Action< OnlineMapsTileOnTileLoaded
 This event is occurs when a tile is loaded. More...
 

Detailed Description

Manages map tiles

Member Function Documentation

◆ GetTile() [1/2]

OnlineMapsTile OnlineMapsTileManager.GetTile ( int  zoom,
int  x,
int  y 
)

Gets a tile for zoom, x, y.

Parameters
zoomTile zoom
xTile X
yTile 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
zoomTile zoom
xTile X
yTile Y
tileTile
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
zoomTile zoom
xTile X
yTile Y
Returns
Tile key

◆ StartDownloadTile()

static void OnlineMapsTileManager.StartDownloadTile ( OnlineMapsTile  tile)
static

Starts dowloading of specified tile.

Parameters
tileTile to be downloaded.

Member Data Documentation

◆ maxTileDownloads

int OnlineMapsTileManager.maxTileDownloads = 5
static

The maximum number simultaneously downloading tiles.

◆ OnPreloadTiles

Action OnlineMapsTileManager.OnPreloadTiles
static

The event occurs after generating buffer and before update control to preload tiles for tileset.

◆ OnStartDownloadTile

Action<OnlineMapsTile> OnlineMapsTileManager.OnStartDownloadTile
static

An event that occurs when loading the tile. Allows you to intercept of loading tile, and load it yourself.

◆ OnTileLoaded

Action<OnlineMapsTile> OnlineMapsTileManager.OnTileLoaded
static

This event is occurs when a tile is loaded.