Comments (5)
Great list, thanks, going to implement a few things when I have time
from mapbox-ios-examples.
Today I could only work on some of these offline features and it's still WIP.
I'm going to work on it as soon as I have time again.
from mapbox-ios-examples.
Testing the code you've committed so far, great! Is it a bug that I can re-download the same area over and over? Seems to me, to save bandwidth, the user shouldn't have to re-download the same content twice and should be skipped.
Also downloading a large area, it only downloads 1284 resources before halting. Pausing and Resuming starts the whole thing over. EDIT: Opened mapbox/mapbox-gl-native#6814
Are these mapbox sdk errors?
from mapbox-ios-examples.
Sadly I didn't have much time left to work on this repo the last few days.
There is already a mechanism to prevent the user to download the same content over and over again, it just isn't clearly when using my example. When you press download, Mapbox "downloads" the content from the disk and not over network.
Your Mapbox-powered application will reuse tiles and resources that are required by multiple regions, conserving network traffic and disk space.
This is the same as stated above. Pausing and resuming assumes that it downloads the whole thing over but it doesn't. It first "downloads" the content from disk and then starts downloading the remaining tiles over network. (I've read this somewhere sometime but I couldn't find it anymore)
Well, that's how I understood how the whole process works based on the documentation. Maybe @1ec5 can confirm this?
from mapbox-ios-examples.
Pausing and resuming assumes that it downloads the whole thing over but it doesn't. It first "downloads" the content from disk and then starts downloading the remaining tiles over network. (I've read this somewhere sometime but I couldn't find it anymore)
That’s correct. This behavior is documented in the MGLOfflinePack documentation:
When a pack resumes after being suspended, it may begin by iterating over the already downloaded resources. As a result, the
progress
structure’scountOfResourcesCompleted
field may revert to 0 before rapidly returning to the level of progress at the time the pack was suspended.
mapbox/mapbox-gl-native#5808 tracks making this behavior more intuitive.
from mapbox-ios-examples.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapbox-ios-examples.