subdivide To Cache
open fun subdivideToCache(tileFactory: TileFactory, cache: LruMemoryCache<String, Array<Tile>>, cacheSize: Int): Array<Tile>
Returns the four children formed by subdividing this tile, drawing those children from a specified cache. The cache is checked for a child collection prior to subdividing. If one exists in the cache it is returned rather than creating a new collection of children. If a new collection is created in the same manner as subdivide and added to the cache.
Return
an array containing the four child tiles, or null if this tile's level is the last level
Parameters
tile Factory
the tile factory to use to create the children
cache
a memory cache that may contain pre-existing child tiles.
cache Size
the cached size of the four child tiles