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
merged 1 commit into from
Aug 17, 2024

Conversation

y20k
Copy link
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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
Collaborator

awesome thanks!

@spyhunter99 spyhunter99 added this to the 6.1.19 milestone Aug 17, 2024
@y20k
Copy link
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.

None yet

2 participants