I've got a map (Mercator), and the coordinates of the 4 corners of the map. I need to come up with something so I can convert given coordinates to corresponding points on the map. I can't use google or anything of the sort, which is why I'm needing to do this in the first place.
The languages I can use are either going to be PHP or Javascript. I've tried some things that I've found in other posts such as this one: http://stackoverflow.com/questions/2103924/mercator-longitude-and-latitude-calculations-to-x-and-y-on-a-cropped-map-of-the, but I haven't had any luck with them.
If anyone can offer some assistance I would be really grateful. I'm terrible with math and looking at some of these equations this is starting to feel out of my league, but I've got to get it done.
Again, thank in advance.