You need to know the projection of the map. There are hundreds of different map projection and many of them can have the important constants that can have any meaning.
So, at first, you need to know, what map do you use?
After that, find the formulas for this projection and use them. For example, for UTM projection the formulas are here. But for another projection the formulas and the whole system will be absolutely different.
The next step, you'll have to imagine yourself how the abstract map will be shown on your screen.
For me, a pro in geomatic and programming, the whole task would take minimally 2 days for some exactly known and not rare map system. There always are serious problems in debugging, to set the point exactly. And there are always problems with formulas - you'll find several variants and will need to find the correct ones.
But if the map is already actively used by programmers, you could find not formulas, but pieces of code. Good luck!