ThinkGeo.com    |     Documentation    |     Premium Support

WPF - LineStyle

Hello,

in a custom layer, derived from MapShapeLayer, i draw points, areas an lines.
First i draw all Areas, then the lines and then the Points.

When i use only the outer pen for the line style (set center and inner pen transparent), the Point is completly visible. But when I use the other pens (inner and center) the Line will draw ‘over’ the Point (see attached Pictures).
Is this a bug?

I use Version 14.4.0 - beta 059.

Regards Torsten
OnlyInnerLine OnlyOuterLine OuterAndInnerLine

Hi,

Each pen of a LineStyle is rendered on its own DrawingLevel: OuterPenCenterPenInnerPen. PointStyle by default will be drawn on the same level of OuterPen.

You can control this explicitly: set your pointStyle.DrawingLevel to Level3 would fix the issue. Let us think about whether to default it to Level3.

By the way, from Bottom up it’s DrawingLevel1 to DrawingLevel4, then on top of them is LabelLevel. The DrawingLevel of each pen in LineStyle can be modified as well through

lineStyle.OuterPenDrawingLevel 
lineStyle.CenterPenDrawingLevel
lineStyle.InnerPenDrawingLevel  

Thanks,
Ben