Closed mushon closed 8 years ago
Rather than style transition I think we can use layer transparency. We'll have layers for both color scales and then fade them in/out via JS. I will post the layer names tomorrow so @wonyoungso can experiment with it.
ok, I finally managed to get zooms 0-3 working.
Now we can add a checkbox (which I will style as a toggle) for switching layer visibility.
The 5 drought layers start with drought-*
and are visible by default, the 5 profit layers start with profit-*
and are off by default. The toggle should switch the visibility of these 5:
Default drought mode:
Profit mode:
Done except adding toggle button. implemented in webpack/components/MapToggleBtn.js
Switch the toggle behavior from layer visibility to layer opacity (ideally animated) for better responsiveness of the map toggle
It's almost impossible...
use mapbox style transition. @mushon will enter the color hex numbers and will reassign to @wonyoungso