Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

OfflineManager and MapView should share a singleton DefaultFileSource #4386

Closed

Description

@1ec5

As of #4383, all instances of mbgl::DefaultFileSource in the Android SDK are backed by the same file on disk. Per #4362, the singleton OfflineManager and all mbgl::View instances managed by MapViews should ideally share the same instance of mbgl::DefaultFileSource, so that the 20-connection throttle can be applied to the whole process instead of on a map-by-map basis.

In the iOS and OS X SDKs, in #4377, we made the singleton MGLOfflineStorage object responsible for the singleton mbgl::DefaultFileSource instance. Thus MGLMapView depends on MGLOfflineStorage (as ambient caching is just a special case of offline caching), but not the other way around.

/cc @zugaldia @jfirebaugh

Activity

  1. added
    Android
    on Mar 18, 2016
  2. added this to the android-v5.0.0 milestone on Dec 21, 2016
  3. tobrun commented on Mar 1, 2017

    @tobrun
    Member

    This landed as part of #8083

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

    Androidofflinerefactor

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions