Bug 193700

Summary: Allow of choosing between different „Base layers” of Openstreetmap.
Product: [Applications] marble Reporter: Nikita Skovoroda <chalkerx>
Component: generalAssignee: Torsten Rahn <rahn>
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: marble-bugs, nicolas, philippe.roubach, rahn
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nikita Skovoroda 2009-05-22 23:07:41 UTC
Version:           0.8SVN (using Devel)
OS:                Linux
Installed from:    Compiled sources

For example, compare this:

http://www.openstreetmap.org/?lat=53.9044&lon=27.5545&zoom=12&layers=B000FTF (this is „Mapnik”, the only one that is currently avialable in Marble, http://wiki.openstreetmap.org/index.php/Mapnik)

http://www.openstreetmap.org/?lat=53.9044&lon=27.5545&zoom=12&layers=0B00FTF (this is „Osmarender”, http://wiki.openstreetmap.org/index.php/Osmarender)

http://www.openstreetmap.org/?lat=53.9044&lon=27.5545&zoom=12&layers=00B0FTF

http://www.openstreetmap.org/?lat=53.9044&lon=27.5545&zoom=12&layers=000BFTF

Marble, as it is now, allows using only fist one (while i like the second better). This should be configurable in properties of the map, or just showed up as 4 different maps.

And also, the first one renders 256x256 png images, while the second one creates SVG images, that should probably take less storage place (if gzipped) and internet connection (if the server gives them out in svg/svgz form).
Comment 1 Nikita Skovoroda 2009-05-22 23:23:17 UTC
Also, i posted a comment in bug #192583: https://bugs.kde.org/show_bug.cgi?id=192583#c1
Comment 2 Nikita Skovoroda 2009-05-22 23:28:38 UTC
The best way, imo, would be to get .png/.svg(z) data from a chosen renderer below some zoom level, and to start getting .osm data from some zoom level and processing it with locally installed renderer to .png or .svg(z), so this should save up storage place, internet usage, and make the map more configurable.
Comment 3 Torsten Rahn 2009-05-23 13:30:23 UTC
I'd actually prefer it if each of those maps would be provided as a separate map in the map selection view. 
Adding those maps probably doesn't require any source code changes: You could actually do us a favour and look into it: Look for the directory in which the map data is stored. E.g. for me it's located in 

/usr/local/share/marble/data/maps/earth/openstreetmap

You can see where it's located for you by looking at the output of Marble when running it from the konsole. 

Then copy the openstreetmap directory to a place that is located next to the openstreetmap directory (e.g. osmarenderer).

Then modify all files in there so that the filenames fit. The most important file is the .dgml file which specifies how the map is supposed to look like:
Make sure that the osmarenderer server url is specified instead of the mapnik one.
Then add a matching legend (this is _required_ as we don't accept half-finished stuff). Once you are done you can send your modifications to marble-devel@kde.org. We'll then provide it via the Download map mechanism for all KDE 4.x users.
Comment 4 Dennis Nienhüser 2010-01-16 01:41:24 UTC
*** Bug 217043 has been marked as a duplicate of this bug. ***
Comment 5 Nicolas Dumoulin 2010-10-14 13:50:22 UTC
I think that a convenient solution can be to add a feature for adding a standard TMS from a tile URL for example that will init a new directory in marble/data/maps/earth/ without legend info.
Comment 6 Nikita Skovoroda 2010-10-14 22:00:04 UTC
That would be cool, but URL only would not be enough, it also needs at least "maximumTileLevel" parameter.

Maybe a wizard, that allows to specify at least:
0) Name
1) Target (earth)
2) A list of downloadUrls
3) maximumTileLevel
4) expire time for tiles
5) all the things i missed in this list

And it will be cool if it could render an icon based on the zero level.
Because even osm and plain map now have icons, that do not correspond to zero level view.
Comment 7 Torsten Rahn 2010-10-15 15:40:01 UTC
Hey guys, the suggested solution (Map Theme Wizard) has been on our TODO since long. It's basically a junior job for Marble development. So if you have immediate plans for working on it we'd be glad to assist you! :-)
Currently time is very short but we'd like to get it into the next release. So if you feel tempted to work on this feature don't hesitate and join us! :-)
Comment 8 Nikita Skovoroda 2011-06-07 22:27:49 UTC
Original bug is fixed by providing Osmarender via GHNS.

Other discussion (my wishes about svg) does not belong here, and this bug can be closed now.