Author Topic: pathText - background rectangle bg-rect not displayed  (Read 295 times)

Offline Burkhard

  • Newbie
  • *
  • Posts: 2
    • View Profile
pathText - background rectangle bg-rect not displayed
« 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 .

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>
« Last Edit: February 09, 2019, 20:37:15 by Burkhard »
 

Offline john_percy

  • Master of Locus
  • ****
  • Posts: 653
  • Thanked: 91 times
    • View Profile
  • Device: MotoG
Re: pathText - background rectangle bg-rect not displayed
« Reply #1 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

 
The following users thanked this post: Burkhard

Offline Burkhard

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: pathText - background rectangle bg-rect not displayed
« Reply #2 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!
 

Offline TrulloF

  • More than Newbie
  • *
  • Posts: 42
  • Thanked: 5 times
    • View Profile
  • Device: Xperia Z5 Compact, Xperia X Compact (Sailfish X)
Re: pathText - background rectangle bg-rect not displayed
« Reply #3 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?