have a map image 800px wide. How can I figure out a city.
like New York has 40.75 latitude and -73.98 longitude. I have to pin a mark over this point.
Before I have done with x_axis and y_axis which gives problem on more cities figure because i manually had to input values. now i have database with all cities with latitude and longitude. or is there any way that i can convert latitude and longitude to x and y axis.
Thank you
EDIT
x = image.width * (longitude + 180) / (2 * 180)
y = image.height * (latitude + 180) / (2 * 180)