pathText - background rectangle bg-rect not displayed

Started by Burkhard, February 08, 2019, 14:30:20

0 Members and 1 Guest are viewing this topic.

Burkhard

Hello,

I'd like to display a background rectangle behind pathtexts along ways.
The supported tags are described in LoMaps 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>
  •  

john_percy

I believe that the background rectangle is not implemented for path text, despite the manual.

Sent from my moto g(6) plus using Tapatalk

Voluntary and Velocity themes - https://voluntary.nichesite.org
  •  
    The following users thanked this post: Burkhard

Burkhard

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!
  •  

TrulloF

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?
  •