I am planning to use OSMDroid library for offline map view, and I understand that OSMDroid requires offline map file to be in .sqlite format.
I tried generating the offline map file for osmdroid category and got to know that servers gone out of service.
Now I am thinking of converting .map file to sqlite using MOBAC.
I followed this post, https://www.b4x.com/android/forum/threads/mobac-supports-mapsforge-for-offline-tiles.53277/#content and tried converting the world.map file present in MOBAC home directory... however MOBAC fails to render it upon selecting the custom map.
As instructed here in the link, I copied a XML file referring to the path of ,map file and tried loading the mobac view.. but it does not display any.
Please advise what could have went wrong?
Or any other way to generate sqlite db for the interested region so as to work with OSMDroid?
Please throw lights on this
Are you sure the .map file is in Mapsforge format? A lot of programs use .map extension for totally different file formats.
I downloaded map file from this link, http://download.mapsforge.org/maps/v5/africa/
Upon selecting the "Custom mapsforge" from left pane, it shows nothing on MOBAC view. Am I missing any?
Mapsforge maps are added to MOBAC by creating a custom XML map source (you need to use an external editor to create such an xml file). See our Wiki for examples.
Last edit: r_x 2023-12-11
source: https://extract.bbbike.org/?lang=en&sw_lng=12.579&sw_lat=52.144&ne_lng=14.198&ne_lat=52.884&format=mapsforge-osm.zip&city=mapsforge&email=vidhya.nagarajan84%40gmail.com&as=73.71124820872548&pg=0.9899900343796336&coords=&oi=1&layers=B000T&submit=extract&expire=1702274693
format: mapsforge
Upon selecting the "Custom mapsforge" from left pane, it shows nothing on MOBAC view. Am I missing any?
?xml version="1.0" encoding="UTF-8"?>
<mapsforge>
</mapsforge>
<name>Custom Mapsforge</name>
<minzoom>0</minzoom>
<maxzoom>20</maxzoom>
<mapfile>mpsforge-source.map</mapfile>
<transparent>false</transparent>
<textscale>1.0</textscale>
Is this correct? or Am I missing any?
https://github.com/larroy/mobac/blob/master/mapsources/Example%20custom%20mapsforge%20map%20source.xml