[WIP] Load offline maps used by oruxmaps #304
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a basic prototype to show how offline maps can be integrated (see #296).
OsmDroid allows the use of offline vector maps in Mapsforge format. This format is used by various map apps, e.g. Oruxmaps and Locus. As vector maps are rendered on the device, different styles (sometimes called themes or designs) can be applied on the same data set.
To avoid the need to download the same data and to ease the use of offline maps, this prototype reuses offline maps already downloaded by Oruxmaps.
Make it work, step by step
Open questions
Additional remarks
This really is just a prototype to get a first impression how this could work. Loaded tiles are not cached, there are hardcoded strings, the logic to find offline maps is oruxmap specific and should be generalized and refactored into its own class, and so on and so on. The chances are very high that this PR will overwritten by force-pushing updated code!