/** * 坐标系转换工具类 */ public class PositionUtil { public static double pi = 3.1415926535897932384626; public static double x_pi = 3.14159265358979324 * 3000.0 / 180.0; public static double a = 6378245.0; public static double ee = 0.00669342162296594323;…
/** * 单点坐标纠偏 */ var pi = 3.14159265358979324; var a = 6378245.0; var ee = 0.00669342162296594323; var x_pi = 3.14159265358979324 * 3000.0 / 180.0; /** * 地球坐标转换为火星坐标,即WGS84(国际通用)转为GCJ02坐标系 * 适用于腾讯地图.高德(阿里)地图或谷歌地图 */ function transform (wgLat, wgLon) {…