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

Hi Ben,
thanks for your suggestions. It works so far - only when the Style has an Image, the DrawingLevel seems to be ignored.

Regards TorstenScreenshot 2025-10-07 160119

Are you drawing the image using a PointStyle? Just set pointStyle.DrawingLevel to a proper level (level 4 for example) and it should be fine.