feat: Fill search query with detailed information to make sure photon will get the same location
This commit is contained in:
parent
2578e96b32
commit
29f1d2f0f2
@ -60,12 +60,12 @@
|
||||
locations.forEach(location => {
|
||||
const listItem = document.createElement('li');
|
||||
listItem.classList.add('result-item');
|
||||
listItem.textContent = location.properties.name;
|
||||
listItem.textContent = location.properties.name + " (" + location.properties.city+")";
|
||||
|
||||
// Add event when user clicks on a result location
|
||||
listItem.addEventListener('click', () => {
|
||||
|
||||
locationInput.value = location.properties.name; // Set input field to selected location
|
||||
locationInput.value = location.properties.name + ", " + location.properties.city + ", " + location.properties.country; // Set input field to selected location
|
||||
resultsList.innerHTML = ''; // Clear the results after selecting a location
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user