kartograph / kartograph.js

UNMAINTAINED Open source JavaScript renderer for Kartograph SVG maps
http://kartograph.org
GNU Lesser General Public License v3.0
1.51k stars 228 forks source link

Robinson projection out of sync with the python implementation #38

Open torvalde opened 11 years ago

torvalde commented 11 years ago

In python:

    x = 1000 * self._poly(self.X, i, phi) * self.FXC * lplam
    y = 1000 * self._poly(self.Y, i, phi) * self.FYC

in coffee script:

    x = s._poly(s.X, i, phi) * s.FXC * lplam;
    y = s._poly(s.Y, i, phi) * s.FYC;

I multiplied by 1000 to make the projection work. I have committed the change.

gka commented 11 years ago

thx will you open a pull request?