Giter Site home page Giter Site logo

Comments (7)

bryceco avatar bryceco commented on September 17, 2024 1

That would be around 100,000 square miles of data, and the way the app is architected all downloaded objects are resident in memory. It would require some testing to see what the memory footprint would be for that, not to mention the OSM server only allows downloads of 0.25 square-degrees at a time.

from gomap.

bryceco avatar bryceco commented on September 17, 2024 1

I prototyped this (lots of hacks, nowhere close to ready for production use) and while it took a long time to perform the download the total amount of data wasn't too bad: around 600,000 objects (nodes + ways + relations) with a total memory footprint of around 450 MB. So worth doing some further investigation.

from gomap.

kevinp2 avatar kevinp2 commented on September 17, 2024
GoMap.Offline.Download-540p30.mov

from gomap.

bryceco avatar bryceco commented on September 17, 2024

The “Prepare for Offline” feature only downloads aerial imagery, not OSM data/objects. To download those you can scroll along the highway to force the objects to be downloaded.

Once you’ve scrolled away from Fairbanks a ways you should be able to zoom out fairly far, which makes this less tedious to do this.

from gomap.

kevinp2 avatar kevinp2 commented on September 17, 2024

I tried this, but it turns out to be quite tedious, unfortunately:

  1. Since I don’t care so much about the aerial tiles, I switch to Editor Only.
  2. I zoom out, but I can only zoom out until the scale on the lower left shows about 1 mile. If I zoom out any further, the map changes mode and I can’t see the objects any more, and they won’t download any more.
  3. I can then scroll along the highway. But I have to stop every time to make sure that the green activity indicator completes, and then scroll again. Picture below.

After about ten minutes of patiently doing this by hand, I had maybe a quarter of the highway done.

It would be a fantastic enhancement to simply download for offline ALL the OSM objects in the current view. To me, that is what Prepare for Offline really means :-)

IMG_5144

from gomap.

kevinp2 avatar kevinp2 commented on September 17, 2024

There could be some limits enforced, particularly if you allow the user to select a rectangle. Apple Maps allows offline downloads using a user-selected rectangle up to a certain size.

from gomap.

bryceco avatar bryceco commented on September 17, 2024

fa2b1e1 increases the viewable area before disabling editing.

from gomap.

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.