I have a city "map" (for example - Moscow). She in accuracy repeats the contours the given city in google maps (that is it is copied from google maps and it is a little processed, but the sense remained the same).
Also I have object co-ordinates in a city (in geographic coordinates).
Problem: how to convert geographic coordinates to the co-ordinates of my picture (that is in pixels on OX and OY on a picture). That is I receive geographic coordinates and it is necessary for me to draw this point on my picture.
The most desired variant of the answer - is based on javascript, but it is possible and on php.
I know that on small scales (for example on city scales) it to make simply enough (it is necessary to learn what geographic coordinates has one of picture corners, then to learn "price" of one pixel in geographic coordinates on a picture on axes OX and OY separately).
But on the big scales (country scale) "price" of one pixel will be not a constant, and will vary strongly enough and the method described above cannot be applied.
How to solve a problem on country scales?
Update:
I do not use API Google Maps, I have only: geographic coordinates of the object (they are from google maps), I still have at my site a simple picture *. gif, in which I must draw a point corresponding geographic coordinates.