Skip to content

Show tiles from both offline and cached provider #631

Closed

Description

@Swepilot

First, thanks to @johnpryan for a great package.

I have created png tiles zoom level 1-6 for the entire planet and using them as assets with AssetTileProvider. I will consider packaging the png files and then unpacking into the file system to use FileTileProvider because it seems I have to enter every subdirectory separately in pubspec.yaml and that seems to slow down hot reloads (if anyone has a better suggestions, please...)

Anyway, the zoom 1-6 is good enough for the offline use, but when the user is online I of course want to be able to zoom in more using a normal CachedNetworkImageProvider so I choose provider depending on whether the user is online or offline.

Now, what I really want is to enable the offline user to zoom in more and show the tiles from the CachedNetworkImageProvider if those tiles are in the cache (if not in the cache perhaps show a default png saying something like "NOT AVAILABLE"). Is there any way of doing that already or would that require a new Provider?

Activity

  1. github-actions commented on Mar 21, 2021

    @github-actions

    This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

  2. github-actions commented on Mar 27, 2021

    @github-actions

    This issue was closed because it has been stalled for 5 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions