GreenInfo-Network / seattle-building-dashboard

Energy benchmarking for Seattle
https://greeninfo-network.github.io/seattle-building-dashboard/
ISC License
1 stars 0 forks source link

Highlight selected building #67

Closed danrademacher closed 9 months ago

danrademacher commented 9 months ago

For both circle and boudling footprint, add a 3px #000 stroke to the shape for selected building:

image

Needs to track selection on zoom change back and forth between circles and footprints.

tomay commented 9 months ago

I've got a solution in place, that hooks into the existing render to re-render the highlights when crossing the zoom threshold.

Despite that, it's pretty hacky. I'm definitely not fetching the footprint geojson per Backbone conventions. That said, doing so would be very time consuming, and it's not clear that its worth it. Especially given the aging infrastructure here per #63

tomay commented 9 months ago

Even in the current setup a building can have multiple footprints, which we need to handle from the GeoJSON response

An example is THE PITTSBURGH, 117 JOHN ST Seattle, WA 98109

danrademacher commented 9 months ago

image

https://greeninfo-network.github.io/seattle-building-dashboard/#seattle/2021?layer=total_ghg_emissions&sort=total_ghg_emissions&order=desc&lat=47.61960&lng=-122.35423&zoom=19&building=28006

Seems to work as expected. Can we close this out?

tomay commented 9 months ago

Done and deployed