ThinkGeo.com    |     Documentation    |     Premium Support

Area Hatch style breaks 14.4.0-beta025 -> 14.5.0-beta010

We updated 14.4.0-beta025 to 14.5.0-beta010 and our hatch styles stopped working for Areas. Is this a known issue? Reverting back makes them work again. There is no sample in the HowDoI for hatch styles.

        var areaStyle = AreaStyle.CreateHatchStyle(
            hatchStyle, <-- is ignored
            GeoColor.FromArgb(0, 0, 0, 0), <-- is ignored
            fillColor, <-- is ignored
            outlineColor,
            (int)OutlineWidth,
            LineDashStyle.Solid,
            0f,
            0f);

Thanks!
BR
Julian

It’s a bug introduced in the recent releases. It has just been fixed in beta013, please pull the latest and have another try.

Also, just FYI we will create a HowDoI sample for this before next major release.

1 Like

Thanks Ben, you guys are the GOAT as always

Thrilled to hear that! :grin: :grin: :grin:

Hi there, I ran into the same issue, but updating to a newer version now results in this error.

That is because of this code (problem is the PointSymbolType).
When I replace that with PointSymbolType.Circle there is no problem.

 Private Shared Function GetPointStyleSelected() As PointStyle

    Dim PS As New PointStyle

    With PS
        .PointType = PointSymbolType.Cross
        .SymbolSize = 12
        .FillBrush = GeoBrushes.BrightRed
        .OutlinePen = New GeoPen(GeoBrushes.White, 2)
    End With

    Return PS

End Function

I tried the latest beta 015, but then the ProjectionConverter results in an exception :frowning:

Kind regards,
Guido van den Boom

Hi Guido,

The projection issue was introduced in beta015 and has been fixed in beta017 . Could you pull the latest beta and give it another try?

I couldn’t reproduce the PointSymbolType.Cross issue. If you still see it with the latest beta, please let me know what your PointStyle.PointType is — I feel that property may not be set correctly.

Also, just as an FYI, this issue doesn’t seem related to HatchStyle. Could you create a new post for any follow-ups so it’s easier to locate in the future?

Thanks,
Ben

@Julian_Thoms

We’ve made the following improvements to HatchStyle in the latest beta019,

  1. Respect StyleFactor, make it better display on high-res screen

  2. Make it work with WpfDrawingOverlay

  3. Created a virtual method in class GeoHatchBrush, so give you the option to override and create your own hatch style.

    protected virtual (string SvgPath, int Width, int Height) GetHatchPatternSvgCore(GeoHatchStyle hatchStyle)

Also run the latest HowDoI in dev branch, you can see the new HatchStyle sample, where mouseover the item in the dropdown list updates the map accordingly.

Thanks,
Ben

1 Like

@Julian_Thoms, Just FYI we’ve just released v14.4.2 with this HatchStyle fix.

1 Like