Tileset Download

From Planimate Knowledge Base
Revision as of 14:56, 23 August 2011 by Dave.withnall (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Downloading a tileset for a model can be done using a tool called Mobile Atlas Creator. This tool allows you to highlight a section of the world and download all the map tiles in that region with a specified set of zoom levels.

The instructions below relate to MOBAC version 1.9 which can be downloaded here.

Creating a tileset

Create a new atlas using the OSMTracker Tile Storage format.

A useful default map source is OpenStreetMap Mapnik

  1. Position the map by right click & dragging to the area you are interested in. Scroll wheel to zoom in & out.
  2. At the lowest level of zoom you want left click and drag to select the area you want included in your maps.
  3. Tick the zoom levels you are interested in for your model (0 is a single whole world tile, 16 is ~300m square for each tile)
  4. Click the "Add Selection" button in the Atlas Content area
  5. Click the "Create Atlas" button to start the tile download.

When it is finished there will be a directory tree created something like

Atlas Name_Date/Time
  - LAYERNAME
    - 10
      - 926
      - 927
    - 11
    - 12

Copy the LAYERNAME directory to the same directory as your MDL file.

Adding a custom map source

In the MOBAC executable directory you will see a directory called mapsources.

Create a new text file called custommap.xml with the following content

<?xml version="1.0" encoding="UTF-8"?>
<customMapSource>
<name>Custom Map Source</name>
<minZoom>0</minZoom>
<maxZoom>18</maxZoom>
<tileType>png</tileType>
<url>http://<SERVER>/<PATH>/{$z}/{$x}/{$y}.png</url>
<tileUpdate>None</tileUpdate>
<backgroundColor>#FF0000</backgroundColor>
<ignoreErrors>false</ignoreErrors>
<serverParts></serverParts>
</customMapSource>

Set <SERVER> & <PATH> as appropriate for your custom source.

Restart MOBAC and your new map source will be available for selection.