FMTC Docs
Project Links💝 Support Me
v10
v10
  • flutter_map_tile_caching
  • ❔Is FMTC Right For Me?
  • 💝Supporters
  • 📃(Proprietary) Licensing
  • Full API Reference
  • 🚀Get Started
    • Quickstart
    • Installation
    • Example Application
    • v9 -> v10 Migration
  • Usage
    • Initialisation
    • Root & Stores
      • Root
      • Stores
    • Integrating With A Map
    • Bulk Downloading
      • Recovery
      • Testing Tile Server
    • Import/Export
      • Exporting
      • Importing
  • flutter_map Docs
Powered by GitBook

© Luka Stillingfleet (JaffaKetchup)

On this page
  • Statistics
  • Recovery
  • Import/Export

Was this helpful?

Edit on GitHub
Export as PDF
  1. Usage
  2. Root & Stores

Root

PreviousRoot & StoresNextStores

Last updated 4 months ago

Was this helpful?

A root contains statistics about itself and the stores, as well as information for the bulk download Recovery system, and access to the import/export functionality.

Roots are unnamed, and the current root is accessed through FMTCRoot:

// final root = FMTCRoot;
final databaseSize = await FMTCRoot.stats.realSize;

To manage the root, use the methods on the backend.

Statistics

FMTCRoot.stats allows access to statistics, as well as listing of all existing stores, and the watching of changes in multiple/all stores.

Remember that the size and length statistics in the root may not be equal to the sum of the same statistics of all available stores, because tiles may belong to many stores, and these statistics do not count any tile multiple times.

Recovery

Import/Export

Recovery
Import/Export
RootStats class - flutter_map_tile_caching library - Dart API
Logo