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

Offline jusc

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 1898
  • Thanked: 19 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

  • Padavan of Locus
  • ***
  • Posts: 493
  • Thanked: 45 times
    • View Profile
    • My Brouter Profiles
  • Device: Xiaomi MI A2 (6-128G) / And9-Pie / LocusMap Pro
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: 100
  • Thanked: 13 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

Offline jusc

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 1898
  • Thanked: 19 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.
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11480
  • Thanked: 323 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: 100
  • Thanked: 13 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

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11480
  • Thanked: 323 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!