On Sep 15, 1:57 pm, Justgiz <[email protected]> wrote: > I have a custom map of World of Warcraft athttp://wowmap.justgizzmo.com/ > and im trying to write some code to convert in-game coordinates to a > set of map coordinates. I have the most of it working but the latitude > cords dont line up correctly. The number exactly between two > coordinates seems to be just a lil bit north/south of what would be > expected. Is there some kind of math i can use to fix this?
I think the problem is that your map uses Euclidean geometry whereas Google Maps is expecting a Mercator projection. In Mercator, latitude is stretched towards the poles, so a simple linear calculation doesn't work. For both geometries, lines of longitude are parallel straight lines, so a linear calculation does work for a Google Map. The maths is at http://en.wikipedia.org/wiki/Mercator_projection#Mathematics_of_the_projection Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en -~----------~----~----~----~------~----~------~--~---
