Skip to content

afar/robinson_projection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

All code is licensed under the GPLv2. 

Javascript library for projecting lng/lat coordinates to x,y coordinates using the Robinson projection. See it in use on our Spin the Globe feature on the http://afar.com home page.

Ported to Javascript by AFAR Media from ActionScript code written by Chris Youderian (http://www.flashmap.org/robinson-projection-in-as3-gpl/).

---

Usage:

myProjection = new Robinson(map_width, map_height);
myProjection.project(lat, lng); // -> returns point object in the form {x:10, y:20}

You can also use the projectToCSS() method in the same way to get a point which matches the CSS coordinate system.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published