Code Monkey home page Code Monkey logo

Comments (6)

radven avatar radven commented on May 19, 2024

I like this idea.

One complicating thought though would be how to handle updating a cached map if the update doesn't complete before a network connection is lost. It would be bad to have a mix of old and new tiles in the cache, and you wouldn't want to clear the cache and risk having no tiles present either.

I'd love an atomic update capability that would download all the map tiles in a region to a certain depth, and only if the download fully succeeds then clear the cache and replace it with the new data.

The usage scenarios I have in mind are for apps that are used primarily offline or with very marginal net connectivity, and it is important to never break functionality if a user tries to update her maps and the connection fails or never finishes.

My current plan is to embed a starting map inside the apps via MBTiles, and I've been puzzling over how to allow for OTA updates without requiring a full new version of the app to be released. This might be a way.

from mbxmapkit.

 avatar commented on May 19, 2024

@radven, it sounds like you'd be fine with a cache manager that supported only a single region, and the critical feature you need is actually the ability to do an atomic update for that whole region. Is that right?

from mbxmapkit.

radven avatar radven commented on May 19, 2024

I think only a single region would be fine - I'm trying to imagine cases it wouldn't be.

from mbxmapkit.

incanus avatar incanus commented on May 19, 2024

does it need to support multiple separate, and possibly overlapping, regions in order to be useful

I would say no. The SDK has had the single region capability for a couple years and I've never heard of someone needing particular distinct regions within it (on a per-mapID basis, anyway).

from mbxmapkit.

 avatar commented on May 19, 2024

That works for me. I mentioned multiple regions because I have actually seen a use case for that, but I'm getting the sense it was not a situation which commonly occurs (i.e. it probably doesn't belong in MBXMapKit).

from mbxmapkit.

 avatar commented on May 19, 2024

Closing this in favor of #73

from mbxmapkit.

Related Issues (20)

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.