This project has moved. For the latest updates, please go here.

MinVisible & MaxVisible for label layer

Topics: Algorithms, Web Controls
Jun 2, 2008 at 8:57 AM

I am working on SharpMap. I have set MinVisible & MaxVisible for label layer. But I am facing a problem when I ZoomIn.
When I ZoomIn at top of the map then some labels from bottom side of map doesn't render,only symbols are visible.
same thing happen when I tried to ZoomIn map from bottom side some labels from top side are not visible.
can any one help me to resolve this problem or any hint why this is happening.
Thanks in Advance.....
Jun 2, 2008 at 9:33 AM
Hi Raj, It sounds like the labels are being removed to prevent overlaps. Have a look at the LabelFilter property of the LabelLayer - by default is is assigned SharpMap.Rendering.LabelCollisionDetection.SimpleCollisionDetection as the delegate - there is another option you can use:  ThoroughCollsionDetection or you could create your own. If you want overlapping labels you can create a delegate that returns the input without change.. hth jd