public static interface QuadPagingLayer.PagingInterface
Modifier and Type | Method and Description |
---|---|
int |
maxZoom()
The maximum zoom level you'll be called about to create a tile for.
|
int |
minZoom()
The minimum zoom level you'll be called about to create a tile for.
|
void |
startFetchForTile(QuadPagingLayer layer,
MaplyTileID tileID)
The paging layer calls your class hear to start fetching a tile.
|
void |
tileDidUnload(MaplyTileID tileID)
Called when the system unloads a tile.
|
int minZoom()
int maxZoom()
void startFetchForTile(QuadPagingLayer layer, MaplyTileID tileID)
Calls into the QuadPagingLayer are thread safe, so do your real work on your own thread, or use the LayerThread if you need to.
When your data comes in you should create the visual objects you want in the maply controller and then call addData() one or more times with your new ComponentObject's. Those visual objects should start out with enable = false.
Once you've loaded data, call tileDidLoad() or if you've failed call tileFailedToLoad(). The paging layer will only have a few loads outstanding at once, so you must tell it to continue loading, even on a failure.
layer
- The quad paging layer asking you to start fetching.tileID
- The tile to start fetchingvoid tileDidUnload(MaplyTileID tileID)