andreynovikov / trekarta

Simple, responsive map for your trek. You decide how to journey today, not the application!
https://trekarta.info
GNU General Public License v3.0
169 stars 25 forks source link

Enable current map restoration with Online/OfflineTileSource maps. #183

Closed qnga closed 2 years ago

qnga commented 2 years ago

Current map had been failing to be restored on startup with OnlineTileSource and OfflineTileSource maps. This is because TileSource.getOption("path") was used as identifier though not available with those sources.

Instead, I added an identifier in MapFile: it's still TileSource.getOption("path") for imported maps, whereas the content URI is used with OnlineTileSource and OfflineTileSource.