N900 + mappero + OSM + wanderreitkarte.de = map

To any other maemo users wanting good walking/cycling maps: I’ve been trying to add any map with contour lines to mappero for a while now, and finally figured it out. Probably it shouldn’t be that difficult but for the lack of information on how to do this, so here’s a guide.

Mappero uses tile-based maps, so what does a map actually consist of? A base plus optional layers. You can probably work out how to edit the map resources mappero uses (menu->maps, tiles and repositories sub-menus). If you look at the existing tile resources mappero comes with, each has a name, a unique identifier, and a URL.

Tile sources

You can see a list of a few tile servers on the OSM wiki. What format do these use? The first URL helpfully comes with an example scheme to access tiles, though it’s not the same scheme mappero uses. I wanted to add the Reit- und Wanderkarte maps, but couldn’t work out how to access individual tiles. In the end I just had to guess. The URL scheme for accessing OSM tiles (taken from existing sources) has the form:

http://tile.openstreetmap.org/12/2152/1445.png

where 12 is the zoom level and the other two numbers are longitude and lattitude coordinates (details on how to calculate these coordinates can be found here). It didn’t seem unreasonable, therefore, to assume a similar scheme would be used to access the wanderreitkarte tiles; with a bit of trial and error I found that the following worked:

http://www.wanderreitkarte.de/base/12/2152/1445
http://www.wanderreitkarte.de/topo/12/2152/1445
http://www.wanderreitkarte.de/hills/12/2152/1445

There are three layers here: the base map, an overlay with roads and place names (topo) and finally an overlay with contour lines (hills). To add these sources to mappero, create new tile sources, enter a name and the URL (replacing each number with %d), set the type to XYZ_INV, and set “layer” to true for the two overlays.

Mix and match

Now you’ve added some tile new sources, you need to set up a “repository” (I’d call it a map configuration) to view them. From mappero’s maps menu, click the “repositories” button, add a new repository, change the zoom levels if you wish (the tileservers page lists the maximum zoom for most sources as 17-18), then set the base tiles and any overlay layers. After clicking “save” you need to close the maps menu completely before reopening it in order to select the new map tiles. Voilà!

As you may have realised at this point, there’s no requirement to only use wanderreitkarte overlays with the wanderreitkarte base (or whichever new tiles you just added). Since the default OSM maps look nicer than wanderreitkarte’s base+topo layers, I combined the OSM base with the wanderreitkarte hills layer. Hey presto, exactly the maps I wanted, and I only need to download one more layer!

Advertisements

About dhardy

A software developer who landed in Switzerland, I love conjecturing over a few things computer-related, open collaboration, and quietly promoting linux/KDE as a desktop OS.
This entry was posted in Uncategorized. Bookmark the permalink.

3 Responses to N900 + mappero + OSM + wanderreitkarte.de = map

  1. Rainer says:

    Many thanks for the nice and useful description. A minor thing to add: for the tile server, the cache dir must not end with a space character. Otherwise mappero cannot store the tiles and tells “disk full” (!).

  2. horli says:

    Thank’s works great, although mappero is a little bit unstable setting configuration changes like this one…

  3. Pingback: Kristin Cavalleri

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s