Skip to content

Commit

Permalink
Update scripts.js
Browse files Browse the repository at this point in the history
  • Loading branch information
s27288-pj committed Jan 10, 2024
1 parent c80bbfd commit 606bc96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,14 @@ async function selectLocation(coordinates, place_name) {
displayMapData();

const mapTitle = document.getElementById('map-title');
mapTitle.innerHTML = `<h2>Temperature Map</h2>`;
mapTitle.innerHTML = `<h2>Temperature Map</h2>`
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}`;
Expand Down

0 comments on commit 606bc96

Please sign in to comment.