Code Monkey home page Code Monkey logo

Comments (5)

rmnblm avatar rmnblm commented on September 23, 2024

Great list, thanks, going to implement a few things when I have time ☺️

from mapbox-ios-examples.

rmnblm avatar rmnblm commented on September 23, 2024

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.

nitrag avatar nitrag commented on September 23, 2024

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.

rmnblm avatar rmnblm commented on September 23, 2024

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.

1ec5 avatar 1ec5 commented on September 23, 2024

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’s countOfResourcesCompleted 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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.