prashantchhabra89 / Alternate-Power-Source-Property-Mapper

A web application that puts the power into people's hands for finding sites for sustainable electricity generation.
http://power-planner.appspot.com/
Apache License 2.0
0 stars 1 forks source link

New database tie-in. Real data (almost) fully functional #64

Closed maxentropic closed 9 years ago

maxentropic commented 9 years ago

At long, long last, we have the real data tied in and (pretty much) fully functional! This deprecates the old database, so as soon as this is merged, I'll delete the old code. There are a number of important notes to make:

Heatmap: Solar and wind display with an absolute scaled value. Because solar is so similar across the board, it displays in a logarithmic scale, otherwise it would all be pretty much the same colour. It's still pretty flat, however. Also of note, I disabled viewing multiple resources at the same time (it hasn't worked since back when we had fake data, so I took it out until we can make a good way to show both at once ... I'll be working on that).

UI: I made some changes to the power selection buttons. @lamj1234 , let me know what you think, and if it goes against the vision you had for them. I wanted to add more visual feedback for the user, and to show that they were buttons. I also prefer to have them on the left, but maybe that's just me?

TODO: As I mentioned, solar and wind should be viewable at the same time. The screen tearing bug when binning the heatmap points for wind at further out zoom levels actually still exists, it's just somewhat uncommon. I need to rewrite the logic for binning to fix it.

Demo: There's a live version up! I deployed it to ensure that the database was working properly. http://2-1.power-planner.appspot.com/

prashantchhabra89 commented 9 years ago

Great work!