wyq 1 an în urmă
părinte
comite
ccd5825fcd

+ 4 - 6
Common/ExtensionsDev/MapControlEx.cs

@@ -1353,11 +1353,13 @@ public static class MapControlEx
         };
         return ctrl;
     }
-    public static void Drea(this MapControl ctrl,double Lon,double Lat)
+    public static void Drea(this MapControl ctrl, double Lon, double Lat)
     {
         var innerData = ctrl.Tag as InnerData;
         var mapItem = new MapDot()
         {
+            Stroke = Color.FromArgb(128, 255, 93, 106),
+            ToolTipPattern = "天线",
             EnableHighlighting = DefaultBoolean.True,
             EnableSelection = DefaultBoolean.False,
             CanMove = false,
@@ -1367,13 +1369,9 @@ public static class MapControlEx
             Size = 200,
             Tag = "天线",
             Location = new GeoPoint(Lat, Lon),
-            StrokeWidth = 0,
+            StrokeWidth = 1,
         };
-       // var style = mapItem as MapItemStyle;
-        // innerData._dataCache.Add(item, mapItem);
         innerData.posStorge.Items.Add(mapItem);
-        var idx = innerData.posStorge.Items.IndexOf(mapItem);
-        innerData.posStorge.Items.Swap(idx, innerData.posStorge.Items.Count - 1);
     }
     /// <summary>
     /// 绘制矩形

+ 1 - 0
XdDw.App/UserControl/CtrlPosXd.cs

@@ -205,6 +205,7 @@ namespace XdDw.App.UserControl
         bool stoped = false;
         private async void LoadSimulationData()
         {
+            //mapControl1.Drea(121, 30);
 
             SimulationEditor editor = new SimulationEditor("Simulation_Data2023.dat");
             if (editor.ShowDialog() != DialogResult.OK)