Skip to content

Whats being cached

Matthew Logan edited this page Feb 5, 2025 · 1 revision

This contains a brief overview and usecase for each of the caching mechanisms currently available in InvasivesBC

Table of Contents

Types of caches currently available in InvasivesBC

Maptile Caching 🗺️

Allows users to cache maptiles at lower zoom levels for general areas.

Purpose

InvasivesBC includes prebaked maptiles (pmtiles) for offline use. These high-zoom-level maptiles are large in size, but users can cache individual maptiles for a specific site, allowing for lower zoom levels in the general area related to their work location.

Usecase

  • Access higher-detail satellite imagery while working in the field without an internet connection.

Scope

  • Users can select a general area, and all maptiles within the bounding box are cached and stored.
  • Cached maptile sets can be toggled on and off, similar to recordset layers, providing more detail in specific areas.
  • Users can name maptile layers for better organization.

PlanMyTrip Cache 📒

Purpose

PlanMyTrip allows users to simplify the caching process in four steps:

  1. Draw a shape on the map.
  2. Enter a name for the trip.
  3. Select the types of data to cache (Records, Well Data, Maptiles).
  4. Select "Download."

Usecase

  • Caching allows tracking of cached data via a common identifier.
  • A boolean flag for each dataset enables easy addition/removal of specific sub-caches for a trip.
  • The PlanMyTrip function aggregates existing cache functionality.

Scope

  • Users can download multiple datasets in a single action.
  • Users can delete multiple datasets (one trip) in a single action.
  • Users can update by adding or removing specific datasets as needed.

Record Caching 📁

Purpose

The Record Caching feature is essential to the InvasivesBC application, enabling authorized users to access invasive species site records across British Columbia.

Usecase

Authorized users can create customized (filtered) record sets on their device and cache them for offline use while conducting fieldwork.

Scope

  • Geometry of records is cached as GeoJSON for offline map layers.
  • Cached records are viewable in table or full format.
  • Offline layers can be filtered for use in the What's Here functionality.

Well Caching 🚰

Purpose

Cache well data from DataBC to enable offline access for users creating Chemical Treatment activities.

Usecase

  • User works offline in the field.
  • User inputs the 'Area' of their treatment.
  • Cached wells are cross-referenced with the area, displaying the 5 closest wells in the form.

Scope

  • Cached well data will not be displayed as a map layer.
  • Well data is only used to determine proximity during Chemical Treatments.