[x] Add EpiDataStore class, initially just hardcoded w/ fake data.
[x] Extend DataLayer with notion of overlay layers (in addition to existing base layers).
[x] Add controls to OverlayControlsBoxfor toggling overlay layers.
[x] Draw circles in map admin regions, scaled by number of cases. Mouseover popup shows case data details.
[x] Add case data details to SelectedRegionsInfo panel.
[x] Fix EpiDataStore to return data for selected date instead of just the latest data.
[x] Indicate of the time span for the case data in region panel (and maybe also the popup?).
Polish:
[ ] Rename MapColoring, now that it also mediates overlay data layers that aren't just colors.
[ ] The circle marker captures clicks and doesn't select the underlying region. clickable: false disables the mouseover popup :(.
[ ] Consult w/ UX and research on how to display the circle marker:
[ ] Should it remain the same size on the screen when zooming? Or should zooming in make it bigger?
[ ] Formula for determining circle size. Currently, using log of cumulative cases over the time span. Also, should it be relative to admin region size?
[ ] Other styling issues (color, stroke border, opacity, etc.).
[ ] Use nice switch thingy instead of basic toggle button for overlay layers.
[ ] Indicate time span of case data in the time series display. Could even get per-condition history for the region and draw that(!)
For a first draft, the UI can just show circles per region for number of cases.
Tricky bits:
There's also no backend support yet (no API endpoint, or even schema). The example data we have is for dengue, and only for 1 state (Bahia).
Work in progress, getting pretty close: https://github.com/mikefab/carrotjuice2/pull/27
Main issues:
EpiDataStore
class, initially just hardcoded w/ fake data.DataLayer
with notion of overlay layers (in addition to existing base layers).OverlayControlsBox
for toggling overlay layers.SelectedRegionsInfo
panel.EpiDataStore
to return data for selected date instead of just the latest data.Polish:
MapColoring
, now that it also mediates overlay data layers that aren't just colors.clickable: false
disables the mouseover popup :(.