FMTC Docs
Project Links💝 Support Me
v9
v9
  • flutter_map_tile_caching
  • ❔Is FMTC Right For Me?
  • 💝Supporters
  • 📃(Proprietary) Licensing
  • 🚀Get Started
    • Quickstart
    • Installation
    • Example Application
    • v8 -> v9 Migration
    • Full API Reference
  • 🌐General
    • Initialisation
    • Backends
    • Error Handling
    • Tips
  • 📂Stores & Roots
    • Introduction
    • Stores
      • Management
      • Statistics
      • Metadata
    • Roots
      • Statistics
      • Recovery
    • flutter_map Integration
  • 📲Bulk Downloading
    • Introduction
    • 1️⃣Create A Region
    • 2️⃣Prepare For Downloading
    • 3️⃣Start Download
    • Control Downloads
    • Testing Tile Server
  • 🗃️External
    • Introduction
    • Exporting
    • Importing
  • flutter_map Docs
Powered by GitBook

© Luka Stillingfleet (JaffaKetchup)

On this page

Was this helpful?

Export as PDF
  1. Stores & Roots

Stores

PreviousIntroductionNextManagement

Last updated 1 year ago

Was this helpful?

Stores contain any metadata associated with them, cached statistics, and maintain a reference to all the tiles that belong to it.

They are referenced by name, the single argument of FMTCStore.

Ensure names of stores are consistent across every access. "Typed"/code-generated stores are not provided, to maintain flexibility.

Construction of an FMTCStore object does not imply/infer that the underlying store has been created and is ready for use. Therefore, a store will require creation via its StoreManagement object (accessed via FMTCStore.manage) before it can be used.

// final store = FMTCStore('storeName');
await FMTCStore('storeName').manage.create(); // Refers to the same store as above

After a store reference is constructed, the following actions can be performed with it:

📂

Management: manage

Control the store: create it, delete it, rename it, etc.

Statistics: stats

Retrieve information about the store and its contents

Metadata: metadata

Access simple persistent storage, with no direct influence on FMTC's functioning

Bulk Download: download

Prepare/plan, start, and manage bulk downloads

Integrate With TileLayer

Generate a specialised TileProvider that allows flutter_map to access cached tiles