Label Layer - how to avoid duplicate labels

Topics: Data Access, SharpMap v0.9 / v1.x, Web Controls
Jul 1, 2011 at 9:14 AM

I am using a map of USA.. When, several polygons corresponding to a single feature, label appears mutiple times.

For example: DBF file has only one record for Hawaii. Hawaii has several islands. Same Label appears several times, one of each island. How do I make the label appear only once?

Jul 1, 2011 at 9:52 AM

LabelLayer has a MultipartGeometryBehaviour property.

Try setting it to MultipartGeometryBehaviourEnum.Largest

Hth FObermaier

Jul 1, 2011 at 10:23 AM