Hey,
I’m tracking the mouse position on the globe and translating the coordinates from WGS 84 to sweref1630 (E, N) using proj4js.
It works fine when I output the coordinates to the console:
const targetCoord = proj4("EPSG:4326", "EPSG:3010",sourceCoord);
console.log(targetCoord);
But when I display them via label they get cramped together:
entity.label.text = targetCoord;
document.getElementById("demo").innerHTML = entity.label.text;
Is there a way I can somehow modify the label output so it mirrors the console output? Or even better a way where I can split up the targetCoord so i can have the label display for example:
E: 118083.838362, N: 6654085,346521
Thanks