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

Satellite Projection Issue #37

Closed yysun closed 11 years ago

yysun commented 11 years ago

Hi, I wonder in the satellite project, around line 3105

        A = ((yo * cos_up + xo * sin_up) * sin(this.tilt / H)) + cos_tilt;
        xt = (xo * cos_up - yo * sin_up) * cos(this.tilt / A);

if the above two lines should it be

        A = ((yo * cos_up + xo * sin_up) * sin(this.tilt) / H) + cos_tilt;
        xt = (xo * cos_up - yo * sin_up) * cos(this.tilt) / A;

yysun

gka commented 11 years ago

thanks

gka commented 11 years ago

merged your fix into kartograph.js