Locus Map - forum

Content & Tools => Themes - Vector maps => Topic started by: voldapet on May 11, 2023, 15:21:20

Title: [Tool] Locus custom V3 theme to V4 transformer
Post by: voldapet on May 11, 2023, 15:21:20
As you probably know, Locus used a custom implementation of the Mapsforge vector map rendering for LoMaps vector maps. There were several attributes that the original Mapsforge did not support.

As of May 2023, LoMaps is being released as Mapsforge V4 and the old V3 themes cannot be used for the new LoMaps V4. The new theme must be prepared to work with the new LoMaps V4.
 
We have prepared a simple script to help transform an existing Locus V3 theme into a Mapsforge V4 theme 

Script and simple doc are available at https://github.com/asamm/lomaps-mapsforge/tree/main/theme-v3-to-v4-converter

Please note that the script does not convert the entire theme 1:1.
Manual work will still be required, but should save time when editing attributes.
Title: Re: Locus custom V3 theme to V4 transformer
Post by: luce on May 21, 2023, 19:52:28
Hello Petr,

when I try to convert my custom theme I get this error (see screenshot). Do you have an idea what this means?

Best,
Lucas
Title: Re: Locus custom V3 theme to V4 transformer
Post by: voldapet on May 23, 2023, 10:22:12
Hi,
it seems that the script is not able to work with XML file if isn't in UTF8 encoding. Would you please share your theme file and I'll check it.
Thansk Petr