Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Create a MapsForgeTileSource from a FileInputStream#2020

Merged
spyhunter99 merged 1 commit intoosmdroid:masterfrom
y20k:patch-1
Aug 17, 2024
Merged

Create a MapsForgeTileSource from a FileInputStream#2020
spyhunter99 merged 1 commit intoosmdroid:masterfrom
y20k:patch-1

Conversation

@y20k
Copy link
Copy Markdown
Contributor

@y20k y20k commented Jul 8, 2024

This commit adds the ability to create a MapsForgeTileSource from a FileInputStream. This should add the ability to use MapsForgeTileSource with files coming from Android's new(ish) Storage Access Framework. It leverages the fact that MapFile also has a constructor that accepts a FileInputStream. See issue #1950

This commit adds the ability to create a MapsForgeTileSource from a FileInputStream. This should add the ability to use MapsForgeTileSource with files coming from Android's new(ish) [Storage Access Framework](https://developer.android.com/guide/topics/providers/document-provider). It leverages the fact that MapFile also has a constructor that accepts a FileInputStream. See issue osmdroid#1950
@spyhunter99 spyhunter99 merged commit a446db7 into osmdroid:master Aug 17, 2024
@spyhunter99
Copy link
Copy Markdown
Collaborator

awesome thanks!

@spyhunter99 spyhunter99 added this to the 6.1.19 milestone Aug 17, 2024
@y20k
Copy link
Copy Markdown
Contributor Author

y20k commented Aug 28, 2024

Hi @spyhunter99

Thanks. That is really helpful. I am happy to report that I now can load .map files that are returned from the Android file picker via the Storage Access Framework. (some theming might still be necessary 😄)
Screenshot_20240828_145518

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants