Skip to content

Commit 976ba3d

Browse files
committed
Set former plots to transparent #41
1 parent dc0f195 commit 976ba3d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

BExIS.Pmm.Model/Plotchart.cs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -662,15 +662,19 @@ private SharpMap.Map InitializeMap(Size outputsize, Plot plot, int zoom = 1, boo
662662
if (geometry.Status == 2)
663663
{
664664
pen.DashPattern = dashValues;
665-
transparency = 0;
666-
plotLayer.Style.Fill = new SolidBrush(Color.FromArgb(Int32.Parse(RGBAToArgb(geometry.Color).Replace("#", ""), NumberStyles.HexNumber)));
665+
pen.Width = 3;
666+
plotLayer.Style.Fill = new SolidBrush(Color.Transparent);
667+
//plotLayer.Style.Fill = new SolidBrush(Color.FromArgb(Int32.Parse(RGBAToArgb(geometry.Color).Replace("#", ""), NumberStyles.HexNumber)));
668+
}
669+
else
670+
{
671+
int argb = Int32.Parse(RGBAToArgb(geometry.Color).Replace("#", ""), NumberStyles.HexNumber);
672+
Color clr = Color.FromArgb(argb);
673+
plotLayer.Style.Fill = new SolidBrush(clr);
667674
}
668-
669-
int argb = Int32.Parse(RGBAToArgb(geometry.Color).Replace("#", ""), NumberStyles.HexNumber);
670-
Color clr = Color.FromArgb(argb);
671-
plotLayer.Style.Fill = new SolidBrush(clr);
672675
plotLayer.Style.Outline = pen;
673676
plotLayer.Style.EnableOutline = true;
677+
674678

675679
if (!beyondPlot && beyondBorderCheck(borderLayer, plotLayer))
676680
continue;

0 commit comments

Comments
 (0)