About Home Values Sounds Contact
//-----------------------------ARCHIVED CODE------------------------- /*let updateDataMarkers = (DataPointsToShow) => { homePriceLayer.clearLayers(); for (const point of DataToShow) { const lat = plaza_home_prices['y']; const long= plaza_home_prices['x']; const homeSalePrices = plaza_home_prices['HOUSE SALE PRICE']; const marker = L.marker([lat, long]); marker.bindTooltip(homeSalePrices); homePriceLayer.addLayer(marker); } }; //append list of plazas let updatePlazaList = (DataPointsToShow) => { plazaHomeList.innerHTML = ''; for (const price of DataPointsToShow) { const price = plaza_home_prices['HOUSE SALE PRICE']; const priceLi = htmlToElement(`
  • ${price}
  • `); schoolList.appendChild(priceLi); } }; let filteredPlazaHomes = () => { const selectedPlaza = plazaNameSelect.value; const fPlazas = plaza_home_prices.filter(home => { const plaza = home['NEAREST HISTORIC PLAZA']; const plazaMatch = (plaza === selectedPlaza || selectedPlaza === ''); if (plazaCodeMatch) { return true; } return false; }); return fPlazas; }; let handleSelectChange = () => { const homesToShow = filteredPlazaHomes() || []; updateDataMarkers(homesToShow); updateSchoolList(homesToShow); }; plazaNameSelect.addEventListener('change', handleSelectChange); // The code below will be run when this script first loads. Think of it as the // initialization step for the web page. updateDataMarkers(plaza_home_prices); updatePlazaList(plaza_home_prices);