Hi, following the CoordinateConversion custom format in the documentation I've implemented the widget correctly in my 4.24 app.

But now i need to show the lat/long in DMS, it's like combining these two

This is my format code
const numberSearchPattern = /-?\d+[\.]?\d*/;
const newFormat = new Format({
// Nombre único e información del Formato
name: "XYZ",
conversionInfo: {
convert: function (point) {
const returnPoint = point.spatialReference.isWGS84
? point
: webMercatorUtils.webMercatorToGeographic(point);
const x = returnPoint.x.toFixed(2);
const y = returnPoint.y.toFixed(2);
const z = returnPoint.z.toFixed(2)/2;
return {
location: returnPoint,
coordinate: `${x}, ${y}, ${z}`
};
},
reverseConvert: function (string) {
const parts = string.split(",");
return new Point({
x: parseFloat(parts[0]),
y: parseFloat(parts[1]),
z: parseFloat(parts[2]),
spatialReference: { wkid: 4326 }
});
}
},
coordinateSegments: [
{
alias: "X",
description: "Longitud",
searchPattern: numberSearchPattern
},
{
alias: "Y",
description: "Latitud",
searchPattern: numberSearchPattern
},
{
alias: "Z",
description: "Elevación",
searchPattern: numberSearchPattern
}
],
defaultPattern: "X°, Y°, Zm"
}); Note: The Z value is divided by 2 because the WebScene has a 2x exaggeration.
Thanks in advance