Skip to content

Commit 1c10f21

Browse files
committed
优化底图面板UI
1 parent c37e45c commit 1c10f21

File tree

5 files changed

+268
-204
lines changed

5 files changed

+268
-204
lines changed

MapBoard.Model/BaseLayerInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public BaseLayerInfo()
1616

1717
public BaseLayerInfo(BaseLayerType type, string path)
1818
{
19+
Name = "未命名";
1920
Type = type;
2021
Path = path ?? throw new ArgumentNullException(nameof(path));
2122
}

MapBoard.UI/Mapping/GeoViewHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ public static void ApplyBaseLayerStyles(this BaseLayerInfo baseLayer, Layer arcL
440440
int r = int.Parse(match.Groups["r"].Value);
441441
int g = int.Parse(match.Groups["g"].Value);
442442
int b = int.Parse(match.Groups["b"].Value);
443+
(r, g, b) = (r - 1, g - 1, b - 1);
443444
renderer = new RgbRenderer(stretchParameters, new[] { r, g, b }, null, true);
444445
}
445446
else if (rStretchRenderer.IsMatch(baseLayer.Renderer))

0 commit comments

Comments
 (0)