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.
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:
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:
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!