I want to display text based on coordinates or convert coordinates into pixels

These are the coordinates I get when I place line I want to display text below the line

map.on("pm:create", (e) => {
        console.log(e)
      });

output: 
_bounds
{
_northEast :
 {lat: -18.983282607835886, lng: 133.1762337313188}
_southWest:
{lat: -28.776593096863415, lng: 125.21954025379742}
}