<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Jeremie,<br>
<br>
Am 15.05.2012 14:29, schrieb Jeremie Scheer:
<blockquote cite="mid:4FB24C1B.10306@armadeus.com" type="cite">Thanks
for your answers.
<br>
<br>
I'm a beginner with map and geolocalization tools, so there are
many things I still don't know.
<br>
<br>
<blockquote type="cite">You might want to default to Mercator
projection in Marble since that delivers
<br>
the best speed.
<br>
</blockquote>
How can you do that ? Is there a method in the code to default to
Mercator ?
<br>
</blockquote>
<br>
Yes, MarbleWidget::setProjection(); See [1] for a code example.<br>
<br>
<blockquote cite="mid:4FB24C1B.10306@armadeus.com" type="cite">
<br>
<blockquote type="cite">It's trivially easy to preload the tiled
bitmaps
<br>
</blockquote>
Where can you find tiled bitmaps from OSM on the Internet ? Or OSM
files must be transformed to tiled bitmaps with Mapnik first ?
<br>
<br>
<br>
Now if I have tiled bitmaps, how can I use them in Marble library
being offline ?
<br>
<br>
Regards,
<br>
</blockquote>
<br>
The easiest way is to open Marble as a regular program, select the
map theme you'd like to use (possibly OpenStreetMap) and use
File->Download Region to have Marble retrieve the bitmaps for
you. They'll end up in (for OpenStreetMap) the
~/.local/share/marble/maps/earth/openstreetmap/ directory.<br>
You can transfer the contents of the directory to your device and
they'll be automatically found and used by Marble and also
applications using Marble as a library (assuming you transfer it to
the right directory on the device). The directory must not be user
specific, you can also use Marble's system directory (where
openstreetmap.dgml gets installed to).<br>
<br>
Note however that this approach scales well performance wise, but
does not scale storage wise to provide map data for the entire
planet in street zoom level (unless you have several GB available).<br>
<br>
Regards,<br>
Dennis<br>
<br>
[1]
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a href="http://techbase.kde.org/Projects/Marble/MarbleMarbleWidget">http://techbase.kde.org/Projects/Marble/MarbleMarbleWidget</a><br>
<br>
</body>
</html>