Skip to content

Commit

Permalink
codeformat
Browse files Browse the repository at this point in the history
  • Loading branch information
wandergis committed Jul 8, 2015
1 parent 601d09f commit 28aa6b8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions coordTransform.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ function bd09togcj02(bd_lon, bd_lat) {
return [gg_lng, gg_lat]
}


/**
* 火星坐标系 (GCJ-02) 与百度坐标系 (BD-09) 的转换
* 即谷歌、高德 转 百度
Expand All @@ -43,7 +42,6 @@ function gcj02tobd09(lng, lat) {
return [bd_lng, bd_lat]
}


/**
* WGS84转GCj02
* @param lng
Expand Down Expand Up @@ -92,11 +90,8 @@ function gcj02towgs84(lng, lat) {
mglng = lng + dlng;
return [lng * 2 - mglng, lat * 2 - mglat]
}


}


function transformlat(lng, lat) {
var ret = -100.0 + 2.0 * lng + 3.0 * lat + 0.2 * lat * lat + 0.1 * lng * lat + 0.2 * Math.sqrt(Math.abs(lng));
ret += (20.0 * Math.sin(6.0 * lng * PI) + 20.0 * Math.sin(2.0 * lng * PI)) * 2.0 / 3.0;
Expand Down

0 comments on commit 28aa6b8

Please sign in to comment.