Converts a point from latitude/longitude to pixel coordinates using the Mercator projection.
Demo: http://jsfiddle.net/aemkei/Ls4QU/show/
mercator(
latitude, longitude,
zoomLevel,
tileSize
)
// returns {x,y} coordinates
Created by Martin Kleppe (@aemkei) at Ubilabs.
Check his “JavaScript Golf Lessons“ slides.
See the 140byt.es site for a showcase of entries (built itself using 140-byte entries!), and follow @140bytes on Twitter.