Author Topic: How to update render themes to V4 Mapsforge maps?  (Read 830 times)

Offline jusc

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 1898
  • Thanked: 20 times
    • View Profile
  • Device: Samsung Galaxy S2 and Note 2
How to update render themes to V4 Mapsforge maps?
« 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?
Regards J.
 

Offline poutnikl

  • Master of Locus
  • ****
  • Posts: 586
  • Thanked: 61 times
    • View Profile
    • My Brouter Profiles
  • Device: Xiaomi MI A2 (6G/128G) / A10 / LM3 Pro + LM4 alpha
Re: How to update render themes to V4 Mapsforge maps?
« Reply #1 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
« Last Edit: September 28, 2019, 13:28:00 by poutnikl »
https://github.com/poutnikl/Brouter-profiles/wiki
When a user digs profiles up from the GitHub repositories,
they will be hopefully wrapped in some wiki knowledge....  :-)
 

Offline Tobias

  • Apprentice of Locus
  • **
  • Posts: 102
  • Thanked: 15 times
    • View Profile
    • Elevate themes
Re: How to update render themes to V4 Mapsforge maps?
« Reply #2 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
developer of Elevate mapstyle for OpenAndroMaps
 
The following users thanked this post: jusc, Magellan

Offline jusc

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 1898
  • Thanked: 20 times
    • View Profile
  • Device: Samsung Galaxy S2 and Note 2
Re: How to update render themes to V4 Mapsforge maps?
« Reply #3 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.
Regards J.
 

Online menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11769
  • Thanked: 400 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: How to update render themes to V4 Mapsforge maps?
« Reply #4 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.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 
The following users thanked this post: michaelbechtold, Viajero Perdido

Offline Tobias

  • Apprentice of Locus
  • **
  • Posts: 102
  • Thanked: 15 times
    • View Profile
    • Elevate themes
Re: How to update render themes to V4 Mapsforge maps?
« Reply #5 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
developer of Elevate mapstyle for OpenAndroMaps
 
The following users thanked this post: tapio

Online menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11769
  • Thanked: 400 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: How to update render themes to V4 Mapsforge maps?
« Reply #6 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.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline karlchick

  • More than Newbie
  • *
  • Posts: 33
  • Thanked: 31 times
    • View Profile
  • Device: Samsung Galaxy A3 2017
Re: How to update render themes to V4 Mapsforge maps?
« Reply #7 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!   
 
The following users thanked this post: poutnikl