When a map is clicked, I have a function that retrieves GPS coordinates. However, the result is currently displayed in brackets (). It is necessary to eliminate the brackets.
function onClickCallback(event){
var str = event.latLng
var Gpps = str //.replace("(","");
document.getElementById('latlng').value = Gpps; // results shown in (brackets)
Unfortunately, the code below does not provide the GPS coordinates in any format :(
function onClickCallback(event){
var str = event.latLng
var Gpps = str.replace("(","");
document.getElementById('latlng').value = Gpps; / NO result