diff --git a/src/routes/sections/BuildingInsightsSection.svelte b/src/routes/sections/BuildingInsightsSection.svelte index e56f0e3..6e09016 100644 --- a/src/routes/sections/BuildingInsightsSection.svelte +++ b/src/routes/sections/BuildingInsightsSection.svelte @@ -93,7 +93,7 @@ // Create the solar panels on the map. const solarPotential = buildingInsights.solarPotential; - const palette = createPalette(panelsPalette, 256).map(rgbToColor); + const palette = createPalette(panelsPalette).map(rgbToColor); const minEnergy = solarPotential.solarPanels.slice(-1)[0].yearlyEnergyDcKwh; const maxEnergy = solarPotential.solarPanels[0].yearlyEnergyDcKwh; solarPanels = solarPotential.solarPanels.map((panel) => { diff --git a/src/routes/sections/Sections.svelte b/src/routes/sections/Sections.svelte index 3c20518..aa64889 100644 --- a/src/routes/sections/Sections.svelte +++ b/src/routes/sections/Sections.svelte @@ -63,8 +63,8 @@ bind:expandedSection bind:buildingInsights bind:configId - bind:panelCapacityWattsInput bind:showPanels + bind:panelCapacityWatts={panelCapacityWattsInput} {googleMapsApiKey} {geometryLibrary} {location}