This project is read-only.

Adding point with label.

Apr 3, 2014 at 5:34 PM
Edited Apr 3, 2014 at 5:39 PM
Hello,

I have a problem with labels.

Create labels:
IMapLabelLayer labelLayer = new MapLabelLayer();
ILabelCategory category = labelLayer.Symbology.Categories[0];
category.Expression = "[ID]";
category.Symbolizer.Orientation = ContentAlignment.MiddleCenter;
_pointLayer.ShowLabels = true;
_pointLayer.LabelLayer = labelLayer;
It's work for allready added point. But after I am trying to add a new point and he hasn't a label.
IFeature currentFeature = _point.AddFeature(point);
currentFeature.DataRow["ID"] = _id++;
If I am trying to create labels again aplication crushes.
How I can update labels for new points?

Thanks
Apr 3, 2014 at 11:20 PM
Hi, it seems that you have the same issue as described at https://dotspatial.codeplex.com/workitem/25072
It is already fixed in trunk.
Marked as answer by jany_ on 9/9/2014 at 1:35 AM
Apr 6, 2014 at 10:28 AM
Thank you!