Skip to content

Commit

Permalink
Tweak mapping transform
Browse files Browse the repository at this point in the history
  • Loading branch information
Ogadai committed Mar 30, 2018
1 parent 1a5277a commit edfdfd2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/mapLatLong.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const maps = {
1: {
toXY: (lat, long) => ({
x: (lat - 348.3551) * 11050000,
y: (long - 166.9529) * 10840000
x: Math.round((lat - 348.35518) * 11050000),
y: Math.round((long - 166.95292) * 10920000)
}),
offset: {
lat: 360,
Expand All @@ -11,8 +11,8 @@
},
2: {
toXY: (lat, long) => ({
x: (lat - 37.54303) * 11080000,
y: (long - 282.56252) * 8790000
x: Math.round((lat - 37.54303) * 11080000),
y: Math.round((long - 282.56252) * 8790000)
}),
offset: {
lat: 0,
Expand All @@ -21,8 +21,8 @@
},
3: {
toXY: (lat, long) => ({
x: (long - 359.8321) * 6940000,
y: -(lat - 51.5017) * 11120000
x: Math.round((long - 359.8321) * 6940000),
y: -Math.round((lat - 51.50175) * 11130000)
}),
offset: {
lat: 0,
Expand Down

0 comments on commit edfdfd2

Please sign in to comment.