This project has moved and is read-only. For the latest updates, please go here.

Multi Column labels

Topics: SharpMap Project, SharpMap v0.9 / v1.x, SharpMap v2.0, WinForms Controls
Sep 24, 2013 at 12:12 PM

I had created a label layer and i am displaying the "Value" column from the database as label, now i had to display "Name" column along with the values, Please refer the code below
LayLabel.LabelColumn ="Value"; 

LayLabel.LabelColumn ="Name"+"\n"+"Value";  //if i add like this the map is not displaying
Please suggest any solution.

Arun Mohan
Sep 24, 2013 at 12:51 PM
LayLabel.LabelDelegate = r => string.Format("{0}\n{1}", r["Name"], r["Value"]);
Oct 4, 2013 at 5:47 AM
Hi FObermaier,

Thanks it worked