[WIP] Load offline maps used by oruxmaps#304
[WIP] Load offline maps used by oruxmaps#304sgelb wants to merge 4 commits intowarmshowers:developfrom
Conversation
|
Thank you very much for this great extension, @sgelb! One idea: What if, instead of selecting both the map and the theme files, we just select the base directory ( Opening every |
|
It's now possible to select multiple map sources at once. This is supported out of the box by MapsForge, the sources are merged into a single map source. Overlapping map sources do work. |
|
|
70bcc22 to
d47123c
Compare
|
I basically started this PR from scratch. Have a look at #345 |
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!