Locus Map - forum

Support => Information => Topic started by: sebbo on June 01, 2011, 14:30:22

Title: [MANUAL] Create Offline map /w own tile Server (no dl limit)
Post by: sebbo on June 01, 2011, 14:30:22
as i wanted to create a "huge" map for my holiday destination and the download limitation in the new locus version i came to a problem: no time to wait for the download to finish

at first: create your own tile server and render your own tiles
http://weait.com/content/build-your-own ... map-server (http://weait.com/content/build-your-own-openstreetmap-server)

second: get the tiles into a sqlite database useable by locus
viewtopic.php?f=21&t=4 (http://forum.asamm.cz/viewtopic.php?f=21&t=4)
Note: add your custom mapsource to mobac by adding your_name.xml to "mapsources" folder containing:

<?xml version="1.0" encoding="UTF-8"?>
<customMapSource>
<name>test</name>
<minZoom>0</minZoom>
<maxZoom>18</maxZoom>
<tileType>png</tileType>
<tileUpdate>None</tileUpdate>
<url>http://your.webserver.ip.com/subfolder/{$z}/{$x}/{$y}.png</url>
<backgroundColor>#000000</backgroundColor>
</customMapSource>

i know this is not the best howto for a kinda complex thing like this. if you have any questions ill try to help
Title: Re: [MANUAL] Create Offline map /w own tile Server (no dl li
Post by: durian on June 01, 2011, 15:27:09
I am doing the same thing, but I zip the tile directories, and use that as a source for MOBAC. For example:

<localTileZip>
<name>Sweden</name>
<zipFile>osm05.zip</zipFile>
<zipFile>osm06.zip</zipFile>
<zipFile>osm07.zip</zipFile>
<zipFile>osm08.zip</zipFile>
<zipFile>osm09.zip</zipFile>
<backgroundColor>#000000</backgroundColor>
</localTileZip>
One zip file for each zoom level. The atlas creation with MOBAC seems much faster like this than downloading them via a webserver.
The tile directories are created by the mapnik generate_tiles.py script.
-peter
Title: Re: [MANUAL] Create Offline map /w own tile Server (no dl li
Post by: sebbo on June 01, 2011, 15:38:00
the zip files have to be stored in the "mapsources" directory?
Title: Re: [MANUAL] Create Offline map /w own tile Server (no dl li
Post by: durian on June 01, 2011, 19:09:35
No, they should be one level higher, where the mobile atlas jar file is.

-peter