Using Load-On-Demand > Controlling Load-on-Demand > Loading Tiles via the API
 
Loading Tiles via the API
The load-on-demand mechanism is event-driven in that cartographic data is loaded or unloaded following user’s actions, such as zooming or panning. You can, however, use the lockTile method, for example, to preload a tile corresponding to a map zone that is visited frequently or to prevent the tile from being unloaded.
The lockTile method shown below increments the tile lock counter:
IlvTileController::lockTile(IlvInt column,
IlvInt row,
IlvAny source)
If the tile lock counter is equal to zero, the tile is loaded into memory and will not be unloaded as long as the lock is not released with the following method:
IlvTileController::unlockTile(IlvInt row,
IlvInt column,
IlvAny source)

Version 5.5.1
Copyright © 2012, Rogue Wave Software, Inc. All Rights Reserved.