function onMapClick(e) { *!* document.getElementById('latlong').value = e.latlng.toString(); */!* popup .setLatLng(e.latlng) .setContent("You clicked the map at " + e.latlng.toString()) .openOn(map); }