Locus Map - forum

Content & Tools => Themes - Vector maps => Topic started by: aikon96 on October 06, 2026, 21:25:41

Title: [Tool] WYSIWYG Theme Editor
Post by: aikon96 on October 06, 2026, 21:25:41
Hi there,
last days I was inspired by an idea so I wonder how cool it would be to have a WYSIWYG Theme Editor...
This is a work in progress, but I think the current state is already interesting.

Currently compiled the complete code in webassembly so there is no need to install anything and this will be able to run on Windows / Linux / MacOS, so no limitations on your system. This tool is not optimized for mobile phones.

The main features:


So if you like my work you can buy me a coffee:
https://www.paypal.com/donate/?hosted_button_id=GF3AC85A7MQB4

Here's a short video on how to extract osm file from OSM and load it into my tool:
https://savedly.net/f/8xhnc95g

Finally here you can play and have fun creating, modifying themes:


open theme editor (https://locuseditor.4lima.de)
(https://locuseditor.4lima.de/preview/theme_editor_preview.png)


If you are missing any features, or found bugs, let me know.
Kind regards
aikon96
Title: Re: [Tool] WYSIWYG Theme Editor
Post by: aikon96 on October 10, 2026, 18:18:19
Changelog 10-10-2026:

- added option to add / remove rules
- add option to view non ruled items
Title: Re: [Tool] WYSIWYG Theme Editor
Post by: aikon96 on October 16, 2026, 19:12:51
Changelog 16-10-2026:

- added support for importing snazzy map JSON string

note: snazzy maps is for google maps designed, so symbols, POI stuff etc.. are not supported

snazzymap demo (https://savedly.net/f/kgk6uyjq)


note:
If you don't see the latest version of the web app -> press [CTRL] + [F5] to force your browser a refresh!
Title: Re: [Tool] WYSIWYG Theme Editor
Post by: Agus on October 17, 2026, 05:05:40
Thank you for your work. I like the editor.
When I load the OpenAndroMaps map and the Elevate theme, the coloured lines for the LWN,
 RWN and OWN route relationships do not appear.

Best regards
Title: Re: [Tool] WYSIWYG Theme Editor
Post by: aikon96 on October 17, 2026, 21:56:09
@Agus: Thanks for feedback. If I understand you correctly you mean:

network=lwn | own
network=rwn

I just downloaded openandromap (Germany -> Badenwuerttemberg) downloaded also Elevate Theme (both the locus and "non" locus version) and loaded it in my editor.

When I jump into "rules" and select one of these, the editor highlights the depending tracks. Perhaps you had the wrong zoom level when you looked?

I've attached a video, I think this is as it should look like:
https://savedly.net/f/szeszkav

Otherwise, please upload a video or some pics.
Title: Re: [Tool] WYSIWYG Theme Editor
Post by: Agus on October 18, 2026, 11:43:27
Hello. I think I've found the problem. As the OpenAndroMaps Spain-Portugal map takes up a lot of space – 2.15 GB – I loaded the LoMaps map of Spain instead, but this one doesn't display the colours for connections with Elevate or other map styles.
Could you make it so that your programme can load larger maps?

Thank you very much for your work.
Title: Re: [Tool] WYSIWYG Theme Editor
Post by: aikon96 on October 18, 2026, 23:03:30
Ok so I've updated the editor now you can do following:

Load the giant 2,15GB map from openAndroMap, then select the area you want to extract (to reduce the map size) then export the smaller map. Now load the smaller exported map:

https://savedly.net/f/57unew37

Again, press [CTRL] + [F5] to force a browser refresh if you see old version of editor.
Title: Re: [Tool] WYSIWYG Theme Editor
Post by: Graf Geo on October 19, 2026, 11:56:43
Thanks for the brilliant editor!
What I've never managed to do so far is to display informal tracks/paths (trampel paths, informal=yes) separately, so that they stand out better from other tracks/paths.
I'd hoped to sort this out using your WYSIWYG Theme Editor, but I'm not getting anywhere with that either. Do you perhaps have any tips?
Many thanks!
Title: Re: [Tool] WYSIWYG Theme Editor
Post by: aikon96 on October 20, 2026, 23:49:32
@Graf Geo: I've added an option to add further rules. Also I made a video of proof that informal=yes is working with this.

https://savedly.net/f/eqk4v2wg

So please press [CTRL] + [F5] to refresh browser when opening editor to get latest version
Title: Re: [Tool] WYSIWYG Theme Editor
Post by: Graf Geo on October 21, 2026, 10:03:52
@aikon96: Thanks. Unfortunately, it's not working. I followed your instructions, and in your editor, informal paths are displayed correctly (as yellow dotted lines). I downloaded the XML, added it to my theme and selected it in Locus.

However, in the Locus app, I can't see any difference compared to the other paths. :-(
I used the Elevate_Locus.zip theme with OAM maps and created the rule within it.

The rule is definitely included in the selected XML file:

...
    <rule e="way" k="informal" v="yes">
        <line stroke="#FFFF00" stroke-width="0.5" stroke-dasharray="8,40" stroke-linecap="square" />
    </rule>
</rendertheme> 
Title: Re: [Tool] WYSIWYG Theme Editor
Post by: aikon96 on October 21, 2026, 17:11:50
When you are using elevate theme, does this mean you are also using the vector map from openandromap?
I am not 100% sure, but I think that openandromap doesn't include the informal tag in their map.I had the same issue when I first used openandromap instead osm...

Try the map file you can download directly from osm (not openandromap).
Title: Re: [Tool] WYSIWYG Theme Editor
Post by: Graf Geo on October 22, 2026, 09:11:33
@aikon96: Yes, that does seem to be the case. As I prefer to use OAM, I suppose I'll just have to put up with it.   
I'll ask OAM about that.
Title: Re: [Tool] WYSIWYG Theme Editor
Post by: tobser on November 15, 2026, 19:14:35
How does this work? Do you only upload the map to the tool to see an example of the design, or is the map also modified? I tried it earlier with a 1 GB map and the Elevate theme, and it's very slow. If the map is only important for displaying the desired design, would it be sufficient to upload a small section?
Title: Re: [Tool] WYSIWYG Theme Editor
Post by: aikon96 on November 17, 2026, 22:58:46
@tobser:

This is a theme editor, it will only edit your theme file, nothing else. The map upload is only there to show the preview of the (edited) theme, so uploading 1GB will work but this isn't the intended way...

As shown in video, you can extract a small OSM area (<50MB map file) for this and upload it to the editor and have fun
Here's again the video how to get a small map file for preview:
https://savedly.net/f/8xhnc95g
Title: Re: [Tool] WYSIWYG Theme Editor
Post by: Joska on November 22, 2026, 18:28:20
Hallo aikon96.

Vielen dank für dieses wunderbare Werkzeug. :)