I have a similar question to the one found here, Mercator projection: formula for latitude based on pixels? The answer was very helpful but my question is just different enough that it doesn't quite solve it.
Problem: Determine the latitude based on the mouse position on a map.
- The map is 1000 pixels tall
- Pixel 1 = Equator
- Pixel 1000 = 80 degrees latitude
Is there an equation that determines at pixel X (for example 400) the mouse is at latitude Y (maybe 30 degrees)?