Locus Map - forum

Content & Tools => Themes - Vector maps => Topic started by: jusc on September 28, 2019, 12:44:31

Title: How to update render themes to V4 Mapsforge maps?
Post by: jusc on September 28, 2019, 12:44:31
Christian form openandromaps.org wrote: "und auch Locus hat nun auf die modernisierte Renderengine umgestellt."
I downloaded a small V4 map, changed version="3" to version="4" and activated my old theme.
I just see a blank screen.
What is to do? Doesn´t the  features of the Locus V3 rendering engine work any longer?
Is there any description for Locus themes of all tags I can use?
Title: Re: How to update render themes to V4 Mapsforge maps?
Post by: poutnikl on September 28, 2019, 13:25:42
Another candidate is the Waymark v2a theme. It is together with Elevate
 invaluable for long distance bike trekking along international a/o national cycle route network.

As most themes render cycleroutes  too late and often do not distinguish well the route classes ( ICN,NCN,RCN,LCN).

E.g Native Locus hiking/bicycle touring theme shows routes at zoom 13+ what is too late for big picture with ICN or NCN only. Additionally, all have the same colour.

Elevate cycling renders ICN/NCN at Z8-9, other routes at Z12. Similar for Waymark theme.

Waymark theme has additionally a great feature to turn on/off route classes independently.


Sent from my Xiaomi MI A2 / Android 9, via Tapatalk
Title: Re: How to update render themes to V4 Mapsforge maps?
Post by: Tobias on September 28, 2019, 20:05:50
What is to do? Doesn´t the  features of the Locus V3 rendering engine work any longer?
Is there any description for Locus themes of all tags I can use?
Locus uses the standard mapsforge engine for maps V4 and higher. As the Locus extensions were never ported back to mapsforge, they can't be used.
I made a reference which tags are supported by which mapsforge version here:
https://www.openandromaps.org/en/oam-forums/topic/mapsforge-rendertheme-reference
Title: Re: How to update render themes to V4 Mapsforge maps?
Post by: jusc on September 29, 2019, 15:41:33
@Tobias,

Thank you, your reference is very helpful.
And now I understand, that for V4 maps Locus only provides a general theme and no specialized themes at the moment
Unfortunately a few (for me) needed attributes like "scale-icon-size", "scale-font-size" and "style" (missing in your reference) are not available with Mapsforge V4 maps.
So I hope, the LoMaps based on Mapsforge V3, will be available in the future.
Title: Re: How to update render themes to V4 Mapsforge maps?
Post by: Menion on September 29, 2019, 16:23:43
LoMaps will be converted to MapsForge V4 renderer system, hopefully in the near future (during next year).

Anyway because MF project seems not to be dead like in times I started to write own modded version, I'll instead contribute changes back to the official version.
Title: Re: How to update render themes to V4 Mapsforge maps?
Post by: Tobias on September 29, 2019, 22:33:20
"style" (missing in your reference)
Thanks, added it
Anyway because MF project seems not to be dead like in times I started to write own modded version, I'll instead contribute changes back to the official version.
Good news :-)
BTW, are you planning to update the V4-maps engine to mapsforge 0.12.0? This finally adds curved path text rendering, which is great for street names:
https://github.com/mapsforge/mapsforge/pull/1112#issuecomment-477969418
Title: Re: How to update render themes to V4 Mapsforge maps?
Post by: Menion on September 30, 2019, 13:16:37
We may give it a try ... but next version, please. Rather not to change it a day/two before release.
Title: Re: How to update render themes to V4 Mapsforge maps?
Post by: karlchick on May 01, 2020, 00:05:53
Another candidate is the Waymark v2a theme.

In another post I provided an example of using a script to semi-automatically convert outdoor and Waymark v2a locus map v3 map themes into v4 map themes for locus map. Here is a link to the post:

https://forum.locusmap.eu/index.php?topic=6948.msg59452#msg59452

I hope ManfredG doesn't mind me using his Waymark-v2a theme as a guinea-pig. It might not work perfectly in v4 maps and certainly hasn't been checked rigorously. But it would probably make a good starting for point for creating a v4 map version of the Waymark-v2a theme... But note, it is a very large theme consisting of over 8700 lines!