Answers for "how to differentiate latitude and longitude from same value in different textbox"

1

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'];
Posted by: Guest on September-17-2021

Code answers related to "how to differentiate latitude and longitude from same value in different textbox"

Code answers related to "Javascript"

Browse Popular Code Answers by Language