Author Topic: [MANUAL] Create Offline map /w own tile Server (no dl limit)  (Read 4485 times)

Offline sebbo

  • More than Newbie
  • *
  • Posts: 50
    • View Profile
    • http://sebbosweb.com
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:

Code: [Select]
<?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
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline durian

  • Apprentice of Locus
  • **
  • Posts: 135
    • View Profile
  • Device: Samsung S7
Re: [MANUAL] Create Offline map /w own tile Server (no dl li
« Reply #1 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:

Code: [Select]
<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
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline sebbo

  • More than Newbie
  • *
  • Posts: 50
    • View Profile
    • http://sebbosweb.com
Re: [MANUAL] Create Offline map /w own tile Server (no dl li
« Reply #2 on: June 01, 2011, 15:38:00 »
the zip files have to be stored in the "mapsources" directory?
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline durian

  • Apprentice of Locus
  • **
  • Posts: 135
    • View Profile
  • Device: Samsung S7
Re: [MANUAL] Create Offline map /w own tile Server (no dl li
« Reply #3 on: June 01, 2011, 19:09:35 »
No, they should be one level higher, where the mobile atlas jar file is.

-peter
« Last Edit: January 01, 1970, 01:00:00 by Guest »