-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Provide a way to disable network activity for maps #7443
Comments
Note that "updated" here means the following: when connectivity is available, resources (principally tiles) which are needed to render visible regions of the map are checked for freshness according to the schedule defined by caching headers on the most recently stored response. There's no "en masse" update of whole offline regions -- only the resources that are actually used are updated. |
+1 for this. I want to be able to 'lock' the offline map so that it doesn't create any network traffic when viewing the offline map. Even if the user scrolls outside the viewable area it shouldn't try and download more data. That defeats the purpose of an offline map. This is especially critical with tourism apps where users may be on a very limited/expensive data plan while roaming. |
Noting that #8125 proposes a way to turn off file / network activity in the SDK. That PR intends to use the (private to the Mapbox SDK) feature to automatically disable network and file system activity when the host app is running in the background. However, something like this could be used by the application developer to disable activity as a response to connectivity changes (or any other reason) if it were exposed publicly. |
As written, the |
@jfirebaugh is there any solution for the use case mentioned by @barnaclebarnes? We also need a way to allow users to download maps offline and then disable all (or virtually all) mapping network traffic to avoid unnecessary data charges for users. It'd be great if a delegate method was exposed to enable control over when network requests were attempted. |
@robmaceachern We haven't found one yet. This is still stopping us moving 100% too Mapbox maps unfortunately. |
The use case described by @barnaclebarnes is what this feature request is tracking. I've updated the title to make that clearer. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue is still live. AFAIK there is still no way to have offline maps that don't try and access the network. /c @jfirebaugh |
+1 for this issue. Impacts user's battery life and data usage without a method to disable network requests for updated/additional tiles |
Any updates on this? Users are reporting large downloads while using "offline" maps, so I'm looking for a way to prevent downloading tiles in certain cases. |
There’s an open pull request that would add this over in #15650. |
Currently, offline maps are updated whenever device detects a network connection. The user would need to disable this using their platform's connectivity monitoring API if they would like to prevent users from downloading offline maps over a cellular connection.
Would it be possible to let the user to choose whether they want to allow offline maps to update while the end user is connected to cellular?
cc @friedbunny
The text was updated successfully, but these errors were encountered: