how to differentiate latitude and longitude from same value in different textbox
infoWindow.setContent(
JSON.stringify(mapsMouseEvent.latLng.toJSON(), null, 2)
);
infoWindow.open(map);
const data = JSON.stringify(mapsMouseEvent.latLng.toJSON(), null, 2);
const obj = JSON.parse(data);
console.log(obj);
// display in textbox
document.getElementById("latitude").value = obj['lat'];
document.getElementById("longitude").value = obj['lng'];