Mapsui: Label: multiline

Created on 21 Apr 2018  ·  3Comments  ·  Source: Mapsui/Mapsui

Hi,

I try add LabelStyle to Feature and I would like to have a multiline text.
So, I do something like this:

feature.Styles.Add(new LabelStyle { Text = String.Concat("bleble\r\n123\r\nABC", Environment.NewLine, someX, " ", someY) });

and I have empty boxes there where the line breaks are.

bleble□
123□
ABC□
x y

Is it something with Font (FontFamily=Verdana, Size=12)?

Regards,
Łukasz

question

All 3 comments

obraz

Try to remove the '\r'.

works, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JesrigPineda picture JesrigPineda  ·  4Comments

lukaszpitulski picture lukaszpitulski  ·  5Comments

YordanYanakiev picture YordanYanakiev  ·  6Comments

kisslori picture kisslori  ·  8Comments

lukaszpitulski picture lukaszpitulski  ·  5Comments