|
@@ -1,12 +1,18 @@
|
|
|
-using DevExpress.Map.Native;
|
|
|
+using DevExpress.Export.Xl;
|
|
|
+using DevExpress.Map;
|
|
|
+using DevExpress.Map.Native;
|
|
|
using DevExpress.Utils;
|
|
|
-using DevExpress.Utils.Design;
|
|
|
using DevExpress.Utils.Svg;
|
|
|
using DevExpress.XtraBars;
|
|
|
+using DevExpress.XtraGrid;
|
|
|
+using DevExpress.XtraGrid.Columns;
|
|
|
+using DevExpress.XtraGrid.Views.Grid;
|
|
|
using DevExpress.XtraMap;
|
|
|
+using DevExpress.XtraMap.ItemEditor;
|
|
|
+using DevExpress.XtraPrinting;
|
|
|
+using DxHelper;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
-using System.ComponentModel;
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
using System.Data.Common;
|
|
|
using System.Data.SQLite;
|
|
@@ -14,25 +20,9 @@ using System.Drawing;
|
|
|
using System.Drawing.Imaging;
|
|
|
using System.IO;
|
|
|
using System.Linq;
|
|
|
-using System.Linq.Expressions;
|
|
|
using System.Reflection;
|
|
|
using System.Text;
|
|
|
-using System.Threading.Tasks;
|
|
|
using System.Windows.Forms;
|
|
|
-using DevExpress.XtraMap.ItemEditor;
|
|
|
-using DxHelper;
|
|
|
-using System.Runtime.CompilerServices;
|
|
|
-using DevExpress.XtraPrinting;
|
|
|
-using DevExpress.Export.Xl;
|
|
|
-using DevExpress.XtraEditors;
|
|
|
-using DevExpress.Map.Dashboard;
|
|
|
-using DevExpress.XtraGrid;
|
|
|
-using DevExpress.XtraGrid.Views.Grid;
|
|
|
-using DevExpress.XtraGrid.Columns;
|
|
|
-using DevExpress.Map;
|
|
|
-using System.Threading;
|
|
|
-using System.ComponentModel.DataAnnotations.Schema;
|
|
|
-using XdCxRhDW.Repostory.Model;
|
|
|
using XdCxRhDW.Repostory;
|
|
|
|
|
|
public enum GoogleMapType
|
|
@@ -1571,14 +1561,15 @@ public static class MapControlEx
|
|
|
|
|
|
return (c_lng, c_lat); //方向上的另一点坐标
|
|
|
}
|
|
|
- /**
|
|
|
- * 求B点经纬度
|
|
|
- * @param A 已知点的经纬度,
|
|
|
- * @param distance AB两地的距离 单位km
|
|
|
- * @param angle AB连线与正北方向的夹角(0~360)
|
|
|
- * @return B点的经纬度
|
|
|
+
|
|
|
+/**
|
|
|
+* 求B点经纬度
|
|
|
+* @param A 已知点的经纬度,
|
|
|
+* @param distance AB两地的距离 单位km
|
|
|
+* @param angle AB连线与正北方向的夹角(0~360)
|
|
|
+* @return B点的经纬度
|
|
|
*/
|
|
|
- private static MyLatLng getMyLatLng(MyLatLng A, double distance, double angle)
|
|
|
+private static MyLatLng getMyLatLng(MyLatLng A, double distance, double angle)
|
|
|
{
|
|
|
double dx = distance * 1000 * Math.Sin(DegreesToRadians(angle));
|
|
|
double dy = distance * 1000 * Math.Cos(DegreesToRadians(angle));
|