<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>.:: Marcos Dione/StyXman's glob ::. (Posts about marble)</title><link>https://www.grulic.org.ar/~mdione/glob/</link><description></description><atom:link href="https://www.grulic.org.ar/~mdione/glob/categories/marble.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2025 &lt;a href="mailto:mdione@grulic.org.ar"&gt;Marcos Dione&lt;/a&gt; </copyright><lastBuildDate>Thu, 29 May 2025 15:41:12 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Marble using cloudmade tiles with hillshading</title><link>https://www.grulic.org.ar/~mdione/glob/posts/marble-using-cloudmade-tiles-with-hillshading/</link><dc:creator>Marcos Dione</dc:creator><description>&lt;p&gt;Yesterday&lt;sup id="fnref:1"&gt;&lt;a class="footnote-ref" href="https://www.grulic.org.ar/~mdione/glob/posts/marble-using-cloudmade-tiles-with-hillshading/#fn:1"&gt;1&lt;/a&gt;&lt;/sup&gt; I wrote: «Then I found out that it wouldn't be easy to use the tiles
[generated by CloudMade] with &lt;code&gt;marble&lt;/code&gt;». How wrong was I.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developers.cloudmade.com/projects/tiles/documents"&gt;Here&lt;/a&gt; you can read
how to access the tiles in CM's servers. The only thing you need is an API key,
which you can get once you registered (it practically begs you to get one :).
Another piece of the puzzle is &lt;code&gt;marble&lt;/code&gt; itself. I was specting to copy OSM's
service description file and bend it and twist it until it worked with CM's tiles. But
things are, luckily, much more simple.&lt;/p&gt;
&lt;p&gt;In marble you simply do «File», «Create a new map...», then select «Online map
providing indexed tiles», which clearly describes CM. Next, you have to provide
and URL template, which you can simply derive from the doc in CM's site. Mine's
like this:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;http://tile.cloudmade.com/5f806ad32bb44b38a464020fa2223193/51084/256/{zoomLevel}/{x}/{y}.png
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;You, of course, will have to change the API key and the style number for yours.
One thing I found is that the &lt;code&gt;@2x&lt;/code&gt; doesn't seem to work with &lt;code&gt;marble&lt;/code&gt;; without it
it works just fine. Maybe it's a &lt;code&gt;User-Agent&lt;/code&gt; thing. Then you keep answering what
&lt;code&gt;marble&lt;/code&gt; asks you in the wizard. By the end of it, you'll have &lt;code&gt;marble&lt;/code&gt; working with
your tiles! It's amazing.&lt;/p&gt;
&lt;p&gt;One extra hack was to add support for hillshading. These are tiles that are
alpha-blended with OSM's, wich gives you the impression of viewing a 3D map (bah,
at least in the covered regions with mountains). The service files (&lt;code&gt;.dgml&lt;/code&gt; files) are
actually XML files quite easy to edit if you defocus and just look at the big
picture ot if. So I just simply opened both files (OSM's is in
&lt;code&gt;/usr/share/kde4/apps/marble/data/maps/earth/openstreetmap/openstreetmap.dgml&lt;/code&gt;,
the one you created in &lt;code&gt;$HOME/.local/share/marble/maps/earth/foo/foo.dgml&lt;/code&gt;),
copied the texture tag that describes hillshading, pasted it in my &lt;code&gt;.dgml&lt;/code&gt; file,
saved, reopened marble and... voilà! Even better, as hillshading is actually
another tile server, marble can share it for OSM's, OSMaRenderer and yours.&lt;/p&gt;
&lt;p&gt;The final result is simply amazing. You can see a screenshot
&lt;a href="http://grulicueva.homelinux.net/~mdione/gallerpy/pictures/sshots/marble-cloud_made-hillshading.png"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;More on my use of &lt;code&gt;marble&lt;/code&gt; and OSM pretty soon.&lt;/p&gt;
&lt;div class="footnote"&gt;
&lt;hr&gt;
&lt;ol&gt;
&lt;li id="fn:1"&gt;
&lt;p&gt;When I say "yesterday", I actually mean "almost 7 months ago".
That's what took me to fix my glob and come back to writing, finishing
this post. &lt;a class="footnote-backref" href="https://www.grulic.org.ar/~mdione/glob/posts/marble-using-cloudmade-tiles-with-hillshading/#fnref:1" title="Jump back to footnote 1 in the text"&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><category>marble</category><category>openstreetmap</category><guid>https://www.grulic.org.ar/~mdione/glob/posts/marble-using-cloudmade-tiles-with-hillshading/</guid><pubDate>Wed, 25 Jul 2012 13:38:31 GMT</pubDate></item><item><title>Marble, OSM and monav as in car navigation for maemo</title><link>https://www.grulic.org.ar/~mdione/glob/posts/marble-osm-and-monav-as-in-car-navigation-for-maemo/</link><dc:creator>Marcos Dione</dc:creator><description>&lt;p&gt;Ever since it came out in November 2009 I wanted a Nokia N900. Many reasons made
me buy one, some reasons made me wait until this month. Maemo, it's OS, is almost
exactly what I wanted, a real GNU/busybox/Linux. I can do a lot of stuff with it
because it's, I think, the closest to a mini computer with an integrated GPS,
camera, cellular network modem, WiFi and can act both as an USB master or a
slave. I don't know about the N950 or the N9, but really this is a tinkerer's
dream.&lt;/p&gt;
&lt;p&gt;So far I haven't done much with it, most of my personal time is being invested
in something else, but I've been using it mainly as an in-car computer and a
WiFi-to-LAN router. The latter will be the subject to another post, but I want
to concentrate on the former in this post.&lt;/p&gt;
&lt;p&gt;As an in-car computer right now I want two things: navigation and audio player.
The audio player is done; so far the media player that comes in the... phone?
computer? I'll say computer. So far the media player that comes with the
computer is enough for me. Maybe sometime I'll do a &lt;code&gt;satyr&lt;/code&gt; skin for Maemo and
port the beast to it, just for the heck of it.&lt;/p&gt;
&lt;p&gt;Also it has the OVI maps, the default app for navigation, which from what I have
heard, is very good, but it needs a data connection to work. I don't want to
buy a data plan yet, and also there are places where there is no good data
coverage. You might not even get enough signal to make a call or even send an
SMS. So I want something that can cache maps locally in the computer.&lt;/p&gt;
&lt;p&gt;The answer is actually somewhat complex: marble, monav and OpenStreetMap. Marble
is the KDE map viewing application. It can show several types of maps, even from
several celestial bodies. It can talk to a GPS to record and save tracks, and to
monav, which is a routing application that uses OSM data. Of course, Marble can
use OSM's tiles. And the good thing about both is that they can use data cached
on the computer, which means no data link needed, at least not all the time.&lt;/p&gt;
&lt;p&gt;Installing them in Maemo is as simple as selecting them in the App manager
(although I suggest to install and use Faster Application Manager, which is no
so far from a mix between a smartphone store and, let's say, aptitude). Both are
in the &lt;code&gt;extras&lt;/code&gt; repo.&lt;/p&gt;
&lt;p&gt;Once they're installed, the next logical step is to donwload monav's data. For
that you open marble; from its menu you select «Routing», then «Configure».
There you can select Monav, and «Configure». There you can download routing maps
per country. Download all the ones you want, but remember it takes space and
some time to uncompress.&lt;/p&gt;
&lt;p&gt;As for the maps themselves, you can select the tileset you want (so far the
common Mapnik and OSMaRenderer are available). Marble will start downloading and
caching tiles from OSM's servers. You can even use «Download Region...» to
download the tiles for a certain region or route in an interval of zooms.
Becareful about this, because OSM's servers will ban you for a little while if
you pull too much info.&lt;/p&gt;
&lt;p&gt;So now I have an almost complete offline map and routing solution. I still have
to investigate how to add voices (so far it's mute). I also found a couple of
problems with this setup. The most "simple" to solve are UI ones: the navigation
instructions have too much text and too small icons, and while having the
navigation widget on, you lose the zoom controls. Luckily my dock leaves the
volume/zoom hardware buttons free, so I can zoom with them (who needs
multitouch :).&lt;/p&gt;
&lt;p&gt;But the most prominent one is the map itself. Both Mapnik and OSMaRenderer are
too confusing for in-car navigation, they have too much detail, and minor
streets are not clearly distinguished from the blocks themselves. Mapnik in
particular has a very low contrast, which also makes it hard to read in plain
daylight.&lt;/p&gt;
&lt;p&gt;Enter CloudMade. I still don't get much what CloudMade is exactly for, but one
thing I know: it's very easy to create tilesets from OSM data. First I browsed
the styles already in the site and I found one called «Almost Ordinance Survey
25k». I took it and modified it heavily. I named it «daylight in-car navigation».&lt;/p&gt;
&lt;p&gt;Then I found out that it wouldn't be easy to use the tiles with marble. At least
I got to find the right settings. Next chapter will be about using OSMaRenderer
locally.&lt;/p&gt;</description><category>maemo</category><category>marble</category><category>openstreetmap</category><guid>https://www.grulic.org.ar/~mdione/glob/posts/marble-osm-and-monav-as-in-car-navigation-for-maemo/</guid><pubDate>Fri, 30 Dec 2011 19:50:49 GMT</pubDate></item></channel></rss>