Tell me, I encountered the same problem. I get the coordinates of points of a particular region from an OpenStreetMap. These coordinates need to be translated into X and Y points on my Canvas in accordance with the size of the area and drawn.
For example, I have coordinates
[37.6628251, 44.7657795] [37.6636733, 44.7651791] [37.6628725, 44.7640567] [37.6637161, 44.7636559] [37.6647429, 44.7645108] [37.6656829, 44.7641975] [37.6670459, 44.7656444]
I need to place them on my Canvas, which has a size of 1240×504.
What to do?
I tried using different formulas, converting latitude and longitude to X and Y, but when drawing on Canvas, all the points are drawn in one place, since I can’t adjust them to my scale
Артемий Сталащук is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.