Closed nuluferdmello closed 3 years ago
I figured it out, hence closing the query.
let input = document.querySelector( '.leaflet-control-geosearch form input' ); document .querySelector('.leaflet-control-geosearch') .classList.add('active'); //to keep the input field open when value is available input.value = value; //value is passed from feature data
Hi,
Is it possible to populate the search input after clicking on a state or city on the map or on load when user location is found?