VirtualWatershed / prms-vegetation-scenarios

Online tool for PRMS modeling of multiple vegetation scenarios
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

Color panel #17

Closed ruiwu1990 closed 8 years ago

ruiwu1990 commented 8 years ago

Fixed #11 Map color looks better now.

ruiwu1990 commented 8 years ago

Fixes two bugs: 1) Now the rectangle drawing on the map are always based on the last two points. Previous version acts strangely. 2) Different chosen area can show different colors. For this part there is a small problem: Users must Select Vegetation Type first (even if they want to choose type-0 which is the default value, they have to click the button), and then choose an area on the map and then click "Modify Vegetation Region" button.

The problem for 2) is because if users don't click "Select Vegetation Type" button, then

parseInt($('input[name="vegcode-select"]:checked').val()); 

will be NaN.

mt-digital commented 8 years ago

closed with 56ace6b