I am trying to set up a one page web site with the following: *Large image of a World Map *I want most or all of the worlds cities mapped invisibly into the pixels. *When you click a pixel the site tells you how far you are from selected location.
How would you recommend doing this preferably using php and mySQL. Can use other format but no flash.
Using geo-targeting (Usually through HTTP variables) you could probably pre-define the users position on a grid (your world map) and use javascript through AJAX to return a users click position in X/Y coordiniates, with that, you would then have to work out the length that a pixel would convert to in real world terms (1 pixel = 234.6 miles) then use the pre-definded coordiniates versus the new click coordinates to calculate the distance.
You may even be able to use PHP's GD library to create a "line" from start to finish locations on your world map if you generate the map dynamically.