diff --git a/scripts.js b/scripts.js index 04b17ae2..f51a2af0 100644 --- a/scripts.js +++ b/scripts.js @@ -110,11 +110,14 @@ async function selectLocation(coordinates, place_name) { displayMapData(); const mapTitle = document.getElementById('map-title'); - mapTitle.innerHTML = `

Temperature Map

`; + mapTitle.innerHTML = `

Temperature Map

` mapBoxPrecipitation.style.display = 'block'; mapBoxWind.style.display = 'block'; mapBoxTemperature.style.display = 'block'; + mapBoxPrecipitation.style.display = 'none'; + mapBoxWind.style.display = 'none'; + // Update the input field value const locationInput = document.getElementById('location-input-field'); locationInput.value = `${place_name}`;