Make label halo configurable #1144
Comments
Author: koying I know, I know... I was too lazy to do fine tuning of sizes to fit in roads so I did it automatically. I'll remove the "automatic" code and leave it to you to do the tuning ;-) |
Author: koying BTW, do you think you could port your changes to Mapnick.mas, too. You are definitely the official Merkaartor styler ;-) Thanks. |
Author: koying (In [10477]) FIX : Allow font bigger than road width (fixes #1144) |
Author: ColinMarquardt Replying to [comment:2 koying]:
Sure, no problem, will do. |
Author: ColinMarquardt Replying to [comment:3 koying]:
Thanks, that works nicely. One more thing: sometimes, the font has a halo (e.g. for town names), but other times, it has not. I don't seem to be able to control that halo from a style file, or am I missing something? It would be nice to show a halo for e.g. tracks because of the dark background it has. |
Author: koying The halo is hardcoded when the style is applied to a trackpoint, as the fact that the label follow the path is hardcoded to roads. I did it to be sure that the label would be visible whatever background it was drawn upon ( la osmarender). I'll see what I can do without making the style editor too cumbersome. |
Author: ColinMarquardt A simple "Apply halo" checkbox would be enough, it doesn't need a configurable halo radius or some such I think. |
Author: koying (In [10898]) ADD : add support for MTK-based GPSes |
Reporter: ColinMarquardt
[Submitted to the original trac issue database at 2.28pm, Wednesday, 3rd September 2008]
I just added the font stuff to MapnikPlus.mas in SVN (very nice feature BTW, thanks!), and it appears that a font is always scaled so that it fits within the drawn limits of a road. This is a small problem for tracks and footways (which can also have names), as the name becomes visible only at very high zoom.
Some ASCII art examples follow.
Fine and working (road is usually drawn wide enough so that the text fits in):
The desired effect for a footway or track (text should be bigger than the line width in order to be useful):
The text was updated successfully, but these errors were encountered: