Transform map(gtav) cords into pixel

So I’m thinking about a project. To get the GTA 5 Map Cords, and convert them into pixel to place some “boxs” over the map with the right cords?
I know that GTA V uses vector3, how would I do it?
My idea is to make a canvas.
I know that the map starts with var bottomLeft coords[-4000, -4000];
and topRight = [8000, 6000];

Does anyone how I could approach it?