Skip to content

Labels for small paths #1104

Answered by pstorch
pstorch asked this question in Q&A
Feb 25, 2024 · 2 comments · 8 replies
Discussion options

You must be logged in to vote

If others come here with a similar issue, here is what I did:

I copied this file https://github.com/mapsforge/vtm/blob/master/vtm-themes/resources/assets/vtm/default.xml into my own apps src/main/assets directory as vtmstyle.xml.

Then I added <text use="road" /> to these elements:

At last I changed this line in my code:

        renderTheme = map.setTheme(VtmThemes.DEFAULT);

to this:

        renderTheme = map.setTheme(new StreamRenderTheme("", AssetAdapter.readFileAsStream("vtm/vtmstyle.xml")));

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
7 replies
@devemux86
Comment options

@devemux86
Comment options

@pstorch
Comment options

@pstorch
Comment options

Answer selected by pstorch
Comment options

You must be logged in to vote
1 reply
@pstorch
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants