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

Add map reset button #79

Closed tomay closed 7 months ago

tomay commented 8 months ago

Add a new button to reset the map, this should go next to the existing RESET ALL button

image

I suppose a question is whether we need a new button, or if we just extend the existing button functionality to include a map reset (start x, start y, start zoom)

tomay commented 8 months ago

For now, I've added a few lines to reset the map. This also gets triggered when one clicks the "RESET ALL" button.

This could be easily be factored out into a new button. But part of my hesitation is that there's not a lot of room here for a second button, and the words "RESET ALL" seem like they should apply equally to the map.

One note, we reset to map defaults defined in seattle.json not the map extent and zoom that comes from the initial URL params. That seems to me like the most obvious reset, but there may be other opinions on that

tomay commented 7 months ago

Change text to "RESET MAP", instead of "RESET ALL"