News for hackers. Stuff that matters.
Re:Node.js Channel as a live Wargames map. by SingAlong on Thursday July 01, 2010 @01:20AM (#1477181)
Awesome stuff! Especially the fonts and graphics make it look very geeky. I watched Wargames just 2 days back :)

I wonder how he maps it on an image of the world map? Is it possible to mark co-ordinates on an image of a world map? I always thought I had to use Google/Yahoo maps API to do such mapping.

Re:Node.js Channel as a live Wargames map. by stratospark on Thursday July 01, 2010 @02:54AM (#1477336)
View the Javascript source:

function convertLatLngToPx(lat, lng)

Re:Node.js Channel as a live Wargames map. by SingAlong on Thursday July 01, 2010 @09:47AM (#1477967)
Thanks!

But my doubt was close. I was just wondering how to mark lat/lang on a different image of world map. Suppose if the map image is other than the one being used in the app (different size etc), would it require any calculations to be able to mark the lat/long at the right place?