showing results for - "how to differentiate latitude and longitude from same value in different textbox"
Auguste
17 Oct 2018
1   infoWindow.setContent(
2        JSON.stringify(mapsMouseEvent.latLng.toJSON(), null, 2)
3      );
4      infoWindow.open(map);
5
6      const data = JSON.stringify(mapsMouseEvent.latLng.toJSON(), null, 2);
7      const obj = JSON.parse(data);
8      console.log(obj);
9
10      // display in textbox
11      document.getElementById("latitude").value = obj['lat'];
12      document.getElementById("longitude").value = obj['lng'];
13