webdial

Incomplete JS port of moondial.
git clone https://code.literati.org/webdial.git
Log | Files | Refs

commit b4e389489b5e3d928e1afd982d58e375cf3c20fe
parent 77c369498e1a3af501e3bb2c1066475d4f54d6e0
Author: Sean Lynch <seanl@literati.org>
Date:   Wed,  7 Sep 2011 22:26:17 -0700

Scale coordinates.

Diffstat:
Mwebdial.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/webdial.js b/webdial.js @@ -3,11 +3,11 @@ function WebDial(canvas) { function drawMap() { function lon2x(lon) { - return (lon + 180.0); + return Math.round((lon + 180.0) * 1000.0); } function lat2y(lat) { - return (90.0 - lat); + return Math.round((90.0 - lat) * 1000.0); } var ctx = canvas[0].getContext("2d");