Explicit Tile Caching on Android Client


THIS IS A WORK IN PROGRESS


We need to develop a process for explicitly caching tiles on the Android client so users can prepare their application while online and travel to the field.

  • Implicit caching - If you open an area while online, the area at that zoom level will be cached in your device. If you revisit that area while offline, you can see it
  • Explicit caching - the client app tells Mapbox SDK the style to use, the coordinates(polygon) and zoom levels to cache for offline

Workflow

Below is a list of steps the user will go through:

  • Make sure they are connected to the internet
  • Log in
  • Sync

For implicit caching, user must continue to do the following.

  • Confirm the operational areas that are assigned to team show up
  • For each operational area the team is visiting that day OR for the next x days before they will have internet connectivity again:
    • Select the operational area and the plan associated
    • Load the imagery layer at the zoom level needed. 
    • Pan across the area at the lowest zoom level