This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| manual:advanced:map_tools:mobac [2015/09/01 18:18] – mstupka | manual:advanced:map_tools:mobac [2026/12/02 14:32] (current) – removed mstupka | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Creating Offline Maps With Mobac ====== | ||
| - | ---- | ||
| - | <WRAP center round important > | ||
| - | MOBAC is not a product of Asamm Software so we do not take any responsibility for changes in its usage. This article is for general information only. | ||
| - | </ | ||
| - | |||
| - | ===== Basic information ===== | ||
| - | |||
| - | MOBAC (Mobile Atlas Creator) is a software that allows to obtain data from online map servers and transform these data to offline atlases. | ||
| - | |||
| - | ===== How to ===== | ||
| - | |||
| - | * [[http:// | ||
| - | * Run MOBAC and choose **RMaps SQLite** format | ||
| - | {{ : | ||
| - | * Select map, zoom levels and areas you want to download | ||
| - | {{ : | ||
| - | * Create Atlas | ||
| - | {{ : | ||
| - | * Mobac creates a SQLite DB file (offline atlas) in location: // | ||
| - | * Copy the created file to the folder // | ||
| - | * Start Locus Map | ||
| - | * Locus Map automatically imports the new SQLite DB file. Go to Main Menu > Map Manager > Offline tab and select | ||
| - | {{ : | ||
| - | |||
| - | |||
| - | <WRAP round tip> | ||
| - | Note: for more information see [[http:// | ||
| - | |||
| - | </ | ||
| - | |||
| - | ---- | ||
| - | **Other info on this topic extracted from Locus forum** (Asamm Software does not take any responsibility for correctness of the following information): | ||
| - | |||
| - | ====== How to Create Maps on PC with " | ||
| - | |||
| - | ===== Basic information ===== | ||
| - | |||
| - | **Author:** brotbuexe (sven) | ||
| - | |||
| - | **Forumlink: | ||
| - | |||
| - | **Locus version (min):** 2.3.0 | ||
| - | |||
| - | **Created: | ||
| - | |||
| - | ===== Introduction ===== | ||
| - | |||
| - | You can use Mobac to download map tiles and create whole maps for just layer maps for offline use in Locus. | ||
| - | Layer maps you could use to overlay data on another map, for example Hiking paths, or public transport routes. | ||
| - | |||
| - | You can do this on your PC, you don't have to use your phone. | ||
| - | Its Java so it runs on a lot of platforms. | ||
| - | |||
| - | website: http:// | ||
| - | |||
| - | some basics: http:// | ||
| - | |||
| - | For Locus you should use "RMaps SQLite" | ||
| - | |||
| - | MOBAC comes with some providers, like Locus. | ||
| - | But you can use a lot of custom providers. | ||
| - | Like the layers from the maps forum. | ||
| - | |||
| - | Mobac caches the tiles in its own Databases (see tilestore directory in mobac folder) named by the < | ||
| - | You can, if you use the same < | ||
| - | |||
| - | Custom maps provider configuration for tileservers are a lot like they are configured in Locus. | ||
| - | |||
| - | Documentation of the Custom Provider Format: \\ http:// | ||
| - | ===== Howto create custom Mapsources for MOBAC from your Locus providers.xml ===== | ||
| - | |||
| - | 1. Get the providers.xml from Locus (after you used the Locus addon "Locus Map Tweaker" | ||
| - | |||
| - | 2. Open it in Notepad. | ||
| - | |||
| - | 3. Search for the Provider you want to use in MOBAC. | ||
| - | |||
| - | Example: | ||
| - | |||
| - | ... | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | ... | ||
| - | |||
| - | |||
| - | |||
| - | 4. Create a new File < | ||
| - | |||
| - | If Mobac located in c:\mobac, the File should be c: | ||
| - | |||
| - | Add this template to the new File: | ||
| - | |||
| - | <?xml version=" | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | |||
| - | |||
| - | |||
| - | PROVIDERNAME = The Name of the Provider (should not be already used) | ||
| - | PROVIDERURL = the string from the <url> Tag from the providers.xml | ||
| - | |||
| - | Inside the url, Locus uses variables like {x}, they have to be changed to {$x}. Just add the $. | ||
| - | |||
| - | The file in the example should be: | ||
| - | |||
| - | <?xml version=" | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | |||
| - | |||
| - | When you open Mobac you should be able to select the new MapProvider from the list on the top left. | ||
| - | |||
| - | This should be done for every simple Map Provider. Some Providers with multiple layers are a bit complicated. | ||
| - | Some that don't use the simple Tileserverstructure could be not working. | ||
| - | |||
| - | If you have a {s} in the url, this is for load balancing. Inside the < | ||
| - | |||
| - | Now: | ||
| - | Change {s} to {$serverpart} | ||
| - | Change < | ||
| - | Change </ | ||
| - | Change the ; inside the < | ||
| - | |||
| - | Example from providers.xml: | ||
| - | |||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | |||
| - | |||
| - | The xml: | ||
| - | |||
| - | <?xml version=" | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | |||
| - | Now the last thing. If you want, you could set the correct maxZoom. Just get the maxZoom from the Locus Provider, use the < | ||
| - | |||
| - | For a complete documentation of the Custom Map Source format: | ||
| - | |||
| - | If you have problems feel free to post in this thread: http:// | ||
| - | |||
| - | But still, you should not download too much tiles. Its possible that MOBAC is already blocked, or it could be for you and other users too if you batchdownloading 100k tiles... | ||
| - | |||
| - | ===== Create a Layermap for Locus ===== | ||
| - | |||
| - | To create simple layer map, use a custom map source like: | ||
| - | |||
| - | <?xml version=" | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | |||
| - | This will create transparent maps that only have Cycling routes. | ||
| - | |||
| - | If you download layers like cycleroutes, | ||
| - | |||
| - | ===== Example of a Multilayer Map ===== | ||
| - | |||
| - | A Cyclemap with hillshade integrated | ||
| - | |||
| - | Code: Select all | ||
| - | <?xml version=" | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | | ||
| - | | ||
| - | ====== Splitting Sqlitedb ====== | ||
| - | |||
| - | ===== Basic information ===== | ||
| - | |||
| - | **Author:** brotbuexe | ||
| - | |||
| - | **Forumlink: | ||
| - | |||
| - | ===== How to ===== | ||
| - | |||
| - | You could use this sqlite in mobac again and create smaller files from this source, for example split by zoom levels. | ||
| - | |||
| - | When you put them in one folder locus will use them as one map. | ||
| - | |||
| - | If one zoom level is still too big you could try to recompress the tiles for this zoom level inside mobac. | ||
| - | |||
| - | < | ||
| - | <?xml version=" | ||
| - | |||
| - | < | ||
| - | Example custom map definition that uses an existing SQLite based atlas. | ||
| - | Supported atlas formats are RMaps, MBTiles, BigPlanetTracks, | ||
| - | Not supported are: OruxMaps and Osmdroid | ||
| - | --> | ||
| - | |||
| - | < | ||
| - | <!-- Map source name as it appears in the map sources list. --> | ||
| - | < | ||
| - | |||
| - | <!-- File path to SQLite atlas file --> | ||
| - | < | ||
| - | |||
| - | <!-- The atlas type has to be specified manually | ||
| - | Possible values: RMaps, MBTiles, BigPlanetTracks, | ||
| - | Not that this field is case sensitive! --> | ||
| - | |||
| - | < | ||
| - | < | ||
| - | |||
| - | <!-- optional: Specify the image type: PNG JPG or GIF (supported since MOBAC 1.9.1) | ||
| - | By default this value is detected automatically if not specified. --> | ||
| - | |||
| - | <!-- < | ||
| - | </ | ||
| - | </ | ||