setMemoryBudget

fun setMemoryBudget(memoryBudget: MapMemoryBudget?)

The memory budget hint to be used by the map. The budget can be given in tile units or in megabytes. A Map will do the best effort to keep memory allocations for a non essential resources within the budget.

The memory budget distribution and resource eviction logic is a subject to change. Current implementation sets memory budget hint per data source.

If null is set, the memory budget in tile units will be dynamically calculated based on the current viewport size.

Parameters

memoryBudget

The memory budget hint to be used by the Map.