|
@@ -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>
|
|
|
/// 绘制矩形
|