Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function fromLatLngToPoint(location)
- {
- var c= {};
- c.x = 128 + location.Longitude*0.7111111111111111;
- var e=Td(Math.sin(Wd(location.Latitude)),-(1-1E-15),1-1E-15);
- c.y=128+.5*Math.log((1+e)/(1-e))*-40.74366543152521;
- return c;
- }
- function fromPointToLatLng(point)
- {
- return {
- Latitude : Xd(2*Math.sqrt(Math.exp((point.y-128)/-40.74366543152521)) - Math.PI/2),
- Longitude : (point.x-128)/0.7111111111111111
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement