Locus Map - forum

Support => Information => Topic started by: Bob Denny on November 25, 2012, 01:36:27

Title: Using MOBAC for offline maps - finer points (Revised August 2014)
Post by: Bob Denny on November 25, 2012, 01:36:27
Once you have created your offline maps using MOBAC (, there are a few things to be aware of.

To complete the installation of offline maps from MOBAC

Edit: These are the old instructions. No longer needed.
The Locus SQLite map databases have a table named info. It has one row and the following columns

... deleted ...

The maps that MOBAC produces have only the minzoom and maxzoom columns; they are missing the last 4 columns (center_x through provider). This can cause some odd behavior, and you will not be able to tell the source of the maps in the Locus Personal Map list.

To make these maps just right, you need to add the missing columns, add the INTEGER datatype to the maxzoom and minzoom columns, then put 0 (zero) into center_x and center_y, and fill in the zooms and provider (see below), all on the PC before transferring the map to the Android. You can do this with the free SQLite Browser program (which runs on Windows, Mac OSX and I think Linux).

In the zooms column, you list the actual zooms (zoom level checkboxes) you set in MOBAC when making the map, separated by semicolons, for example, "5;6;7;8;9;10;12;14;15").

The Provider is an integer. It corresponds to the provider ID as known to Locus. To get this for a built-in Locus provider such as MapQuest Classic, turn on map caching if needed then movearound on that map to make a (e.g.) MapQuest_Classic.sqlite file in Locus/mapsOnline. Copy that to the PC and open in SQLite Browser and look at the provider ID. If you put that into your new MOBAC map you will see that provider for the MOBAC map too. For the extra providers that you get via the Locus Map Tweaker, look in the mapsonline/custom/providers.xml file for the provider and lift the provider ID out of there.

Now load the MOBAC map onto the Android device in Locus/maps and let Locus find it. Confirm it is listed in your Personal maps. Now select it and try to get the map display to the center of the region of highest zoom tiles you have. It's tough but it does not have to be accurate. This "map center" is not related to the geo-referencing of the maps. It is just used to decide what other personal maps are "close". Anyway, once you have the new map centered on the display, select the tools icon for it in the maps page, set center, Map Center. Now the center_x and center_y columns will have the right info (as close as you can get it, a topic of another post here). At this point you may want to copy the now-completed map back to the PC for backup.
Title: Re: Using MOBAC for offline maps - finer points
Post by: berkley on December 09, 2012, 08:25:01
Is this something for the Locus knowledge base? (