Hi Ludwig and everyone,
Thanks a lot for your efforts on rescueing mapsforge! Looks quite good as far as I can see.
I have designed a theme for openandromaps/mapsforge called Elevate (
http://www.openandromaps.org/kartenlegende/elevation-hike-theme) in which I invested some time, so I got some experience with the obstacles and bugs involved with it. As I have no programming experience I just can report some bugs or wishes which would make this easier (not just for me).
I managed to use your sample.apk with my theme (for those who are interestet: unzipping apk, replacing the files in the osmarender\ directory with PNG-folder and Elevate.xml renamed to osmarender.xml, zipping again to apk, use zipsigner from play store on it, install apk). It would be great to have an easier way to use external themes, maybe I missed it.
One problem with mapsforge 0.3 which still exists are multipolygons with Island within a hole:
http://wiki.openstreetmap.org/wiki/Multipolygon#Island_within_a_holeMaybe it's an issue with mapwriter, but it can be quite ugly looking:
https://lh5.googleusercontent.com/-jyrDWen4Swc/UsxZRb-PJsI/AAAAAAAAADs/6u2NIVfTqCc/s1600/island.pngIt happens if in a mp is an inner area which contains an outer area of the main mp. Maybe it's also related to the inner area being bigger than a tile. My solution for the moment was to fix this by removing the inner island from the mp in OSM if I found one, but that no real solution.
As I fixed all those spots that I know of there isn't any point in OSM right know, but in the current version of Bayern at Openandromaps the problem is still existent at this point: 47.703225, 12.77955
If it's a problem with mapwriter one should just add this
http://www.openstreetmap.org/relation/3397699 to this
http://www.openstreetmap.org/relation/1713021 as outer again for testing.
A smaller issue with rescue: there seem to be some small displacements going on at tile borders which weren't visible in 0.3, this is best visible at contourlines, marked in the picture with green arrows, also in comparison to the rendering in Oruxmaps/0.3:
https://lh4.googleusercontent.com/-1It1TyiGeF8/UsxgXflqzOI/AAAAAAAAAD8/MgvFMeCbjxk/s1600/displacements.pngAt lower zooms it even looks like borders at some places. Maybe it's also related to the next issue.
Borders of areas which are bigger than tiles are getting rendered on tile borders at certain zoom levels. This was also an issue with 0.3, but now it's even bigger. I managed to work around it with protected areas to not use borders till Zoom 13, but this is no longer working as you can see in this picture:
https://lh3.googleusercontent.com/-jFfkNadZXT8/UsxisILm6QI/AAAAAAAAAEI/tDqIUXYKFEE/s1600/borders.pngOne workaround was to use force-polygon-line="true" in mapwriter, but that can't be done if you want to fill the area and not just render the border as with protected areas here.
Another issue, maybe a wish: with symbols you can, more or less, set priorities which is rendered preferably, in putting the rule higher up in the theme. With captions on nodes (as with place=city/town etc.) this isn't really working, it just seems random and doesn't matter where the rule is placed. It just seems dependent on the size of the caption, and that's even worse - larger sized captions for city names aren't rendered because smaller sized ones for suburbs are rendered. I don't know if there's an easy solution for this. Something like this is also happening with peaks, but I don't think there would be any other solution as to prefer to render peaks/volcanoes with higher ele programmed into mapsforge as theming doesn't allow anything like that.
Caption is also an issue in areas: they are rendered very often in a larger area, which looks ugly and wrong, probably also in connection with tiles. That's a reason why Christian has to calculate "Poly-Nodes" for the most important ones as lakes (which aren't named in osmarender.xml at all).
Now some wishes, from important to not so much :-)
dy on areas: Lot's of point of interests are no longer just nodes, often they are tagged on the way oft a building. With mapsforge it's only possible to view either a symbol or a caption on a way. It would be great to have working dy on areas too, so for example I can make alpine hut symbols and captions look the same, and it doesn't matter if it's mapped to a node or a way. I made a bug report for that here:
http://code.google.com/p/mapsforge/issues/detail?id=466positive dy orientated on topline of caption (or dy caption multiplication): one thing you can see in the displacement picture is also that the elevation isn't rendered in the sample.apk screenshot, but in the Oruxmaps one. That happens because sample.apk uses a larger font multiplicator, and if the topline of a caption touches a symbol it isn't rendered in mapsforge. That makes it hard to design themes which work on hdpi and mdpi devices, as positive dy values have to be either huge which looks bad on mdpi, or you have to make different dy's for different font multiplicators. One solution would be to use the topline of a caption for positioning with positive dy's (and bottomline as it is with negative), so that if you use a bigger multiplicator the captions won't touch the symbol. Or that with font multiplicators dy's for captions are multiplied too.
startoffset and others on pathText: in Osmarender there are some options which would be really valuable to have in mapsforge:
http://wiki.openstreetmap.org/wiki/Osmarender/Rules#.3CpathText.3EIf there are several texts to render on a path, for example the hiking route ref and the street name, they can only be rendered atop each other. Something like text-anchor, startoffset or dy would help here!
dy on lines: at the moment all lines are perfectly aligned around the original line. it's not possible to draw two parallel lines on a way, which would be really useful for tunnels, for example dy=-5 for the first line and dy=+5 for the second. or if you have hiking/cycle routes you could draw a slightly offset line next to the highway it belongs to.
So that's all I have on my plate for now, which would make designing themes easier and the maps more accessible and professional looking.
I hope you have the time to look into some of this, and thanks again for all your efforts!
Best regards,
Tobias