[MANUAL] Create Offline map /w own tile Server (no dl limit)

Started by sebbo, June 01, 2011, 14:30:22

0 Members and 1 Guest are viewing this topic.

sebbo

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

second: get the tiles into a sqlite database useable by locus
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
  •  

durian

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
  •  

sebbo

the zip files have to be stored in the "mapsources" directory?
  •  

durian

No, they should be one level higher, where the mobile atlas jar file is.

-peter
  •