I'm creating a simple application that allows visualizing OSM XML data.
I've been following JOSM as a guide, and I'm trying to understand how you can map the long, lat of the XML data to x, y screen coordinates.
I see that there's a link to slippy map tiles that gives an equation, to map to a tileset once given a zoom factor, long and lat. This may be related to my question but I don't think it gives the proper answer.
I'm good with graphics programming and I understand how to use the bounding box to get the screen coordinates if everything was given in an x,y coordinate information. But, everything is in the lon and lat, which means there has to be a projection.
How does JOSM or another application go from lon, lat to x, y on a flat screen simply using the OSM xml data(like JOSM)?