How to convert latitude and longitude to world coordinates Γ  la Google Maps

I am developing a C ++ application for viewing and editing a map of a fictional planet. How it works will be similar to Google Maps. I would like the user to be able to see their current position in latitude / longitude and world coordinates in the graphical interface.

How to convert latitude and longitude to "world coordinates" and vice versa, as in Google Maps? or "pixel coordinates" and vice versa?

+6
google-maps latitude-longitude geography
source share
1 answer

I found the answer to my question. Formulas for converting between different coordinate systems can be found in the source code for this example on the Google Maps API website: http://code.google.com/apis/maps/documentation/javascript/examples/map-coordinates.html p>

+8
source share

All Articles