LabelcollisionDetection not working in VB.NET

Topics: SharpMap v0.9 / v1.x, WinForms Controls
Dec 9, 2015 at 12:40 PM

I have a problem with LabelcollisionDetection in VB.Net.
It is actually not working.
I tried the following parameters:
ll.Style.CollisionBuffer = New System.Drawing.SizeF(10, 10)
ll.MultipartGeometryBehaviour = Layers.LabelLayer.MultipartGeometryBehaviourEnum.Largest
ll.Style.CollisionDetection = True
ll.Style.IgnoreLength = True
But this doesn't change anything. Labels still overlap.

Trying to use:
ll.LabelFilter = SharpMap.Rendering.LabelCollisionDetection.ThoroughCollisionDetection
Returns an error saying:
'For the Parameter "labels" of Public Shared Sub ThorougCollisionDetection(labels as System.Collections.Generic.List(Of Sharpmap.Rendering.BaseLabel)) the Argument is missing.'

I'm clueless.
Any help appreciated!

Dec 10, 2015 at 1:06 PM
ll.LabelFilter = AddressOf SharpMap.Rendering.LabelCollisionDetection.ThoroughCollisionDetection
Marked as answer by Burkhart on 12/14/2015 at 3:33 AM
Dec 14, 2015 at 10:33 AM
Thank you!

This seems to help.
I've read in the issues that there is currently a problem in collision-detection using FW 4.5. So I will have to wait 'til its fixed.