How to assign latitude and longitude to latt and lngg ?
<script>
var lngg, latt;
var map = L.map('map').setView([19.8684798, 75.3218784], 10);
map.addLayer(new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'));
map.addControl( new L.Control.Search({
url: 'https://nominatim.openstreetmap.org/search?format=json&q={s}',
jsonpParam: 'json_callback',
propertyName: 'display_name',
propertyLoc: ['lat','lon'],
marker: L.marker([0,0]),
autoCollapse: true,
autoType: false,
minLength: 2
})
);
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
</script>
I checked documentation but I'm unable to understand how to do this.