setMemoryBudget method

Future<void> setMemoryBudget(
  1. MapMemoryBudgetInMegabytes? mapMemoryBudgetInMegabytes,
  2. MapMemoryBudgetInTiles? mapMemoryBudgetInTiles
)

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.

Implementation

Future<void> setMemoryBudget(
        MapMemoryBudgetInMegabytes? mapMemoryBudgetInMegabytes,
        MapMemoryBudgetInTiles? mapMemoryBudgetInTiles) =>
    _mapInterface.setMemoryBudget(
        mapMemoryBudgetInMegabytes, mapMemoryBudgetInTiles);