Locus Map - forum

Content & Tools => Themes - Vector maps => Topic started by: Burkhard on February 08, 2019, 14:30:20

Title: pathText - background rectangle bg-rect not displayed
Post by: Burkhard on February 08, 2019, 14:30:20
Hello,

I'd like to display a background rectangle behind pathtexts along ways.
The supported tags are described in LoMaps Theming (https://docs.locusmap.eu/doku.php?id=manual:advanced:map_tools:theming) .

So this is my rule in the theme XML-file:

<rule e="way" k="highway" v="footway|path|track|bridleway" zoom-min="15">
   <pathText force-draw="1" k="name" dy="25.0dp" font-style="italic" font-size="8dp" fill="#000000" stroke="#FFFF00" stroke-width="1dp" rotate_up="true" bg-rect-fill="#5757FD" bg-rect-stroke="#FFFFFF" bg-rect-over="5.0dp" bg-rect-stroke-width="1.0dp" bg-rect-rounded="1.0dp"/>
</rule>

Problem:
The names are always displayed without any rectangle !!

Any ideas for the cause and a solution?

PS: the same rule with caption works perfect:

<rule e="way" k="highway" v="footway|path|track|bridleway" zoom-min="15">
   <captionforce-draw="1" k="name" dy="25.0dp" font-style="italic" font-size="8dp" fill="#000000" stroke="#FFFF00" stroke-width="1dp" rotate_up="true" bg-rect-fill="#5757FD" bg-rect-stroke="#FFFFFF" bg-rect-over="5.0dp" bg-rect-stroke-width="1.0dp" bg-rect-rounded="1.0dp"/>
</rule>
Title: Re: pathText - background rectangle bg-rect not displayed
Post by: john_percy on February 08, 2019, 15:29:20
I believe that the background rectangle is not implemented for path text, despite the manual.

Sent from my moto g(6) plus using Tapatalk

Title: Re: pathText - background rectangle bg-rect not displayed
Post by: Burkhard on February 09, 2019, 20:42:36
Yes, it seems there a wrong description, now I think so too:

"pathText

    k
    font-family
    font-style
    font-size
    fill
    stroke
    stroke-width
    dx
    dy
    upper-case
    rotate_up
    scale-font-size
    bg-rect-fill
    bg-rect-stroke
    bg-rect-over
    bg-rect-stroke-width
    bg-rect-rounded

"
Thanks John!
Title: Re: pathText - background rectangle bg-rect not displayed
Post by: TrulloF on February 10, 2019, 12:16:29
Yes, doesn't seem to be implemented for pathText. Tried it some time ago, but forgot about it.
Thanks for confirming. Maybe we should ask Menion to implement it properly?