Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a way to download just OSM objects for Offline use #794

Open
kevinp2 opened this issue Jul 24, 2024 · 7 comments
Open

Need a way to download just OSM objects for Offline use #794

kevinp2 opened this issue Jul 24, 2024 · 7 comments

Comments

@kevinp2
Copy link

kevinp2 commented Jul 24, 2024

Uploading GoMap Offline Download-540p30.mov…

I am mapping the remote Dalton Highway in Alaska, which does not have cell connectivity for much of its length.

Unfortunately, the prepare for off-line feature does not seem to reliably download all the OSM objects in the view. I will attempt to attach a video showing how this works out.

Ideally, I would like a separate button to just download OSM objects only, which are the most useful for on the ground mapping when standing next to an object.

@kevinp2
Copy link
Author

kevinp2 commented Jul 24, 2024

GoMap.Offline.Download-540p30.mov

@bryceco
Copy link
Owner

bryceco commented Jul 24, 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.

@kevinp2
Copy link
Author

kevinp2 commented Jul 25, 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

@bryceco
Copy link
Owner

bryceco commented Jul 25, 2024

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.

@kevinp2
Copy link
Author

kevinp2 commented Jul 25, 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.

@bryceco
Copy link
Owner

bryceco commented Jul 27, 2024

fa2b1e1 increases the viewable area before disabling editing.

@bryceco
Copy link
Owner

bryceco commented Jul 28, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants