In current version December 2016, a separate html file is generated for each selection: perm pops, 200s, 300s, 400s, 600s, 1000s, 1200s+, all distances, and all inter-state perms. The user follows a link from a text list to the desired view.
Better would be dynamic selection: view or hide selected perms while viewing map.
In progress December 2016 by M. Young: Use a sidebar with selection options. Each group of markers for a particular distance is in an array. Javascript triggered by checkboxes either adds a particular group (when a box goes from unchecked to checked) or clears all and adds back checked groups (when a box is unchecked).
This approach will work for selecting distance groups, but does not work well for also selecting by interstate / all. (It could, but it means two groups per distance, "interstate only" and "all others" ... still a possibility.) To deal with this, my current plan is to create two maps, one for all perms (all distances, select distance groups dynamically) and another for interstate perms (all distances, select distance groups dynamically). To accommodate links between the two versions, and to make it easier to also generate the old-style single distance maps for backward compatibility, I am introducing jinja2 templating in place of the prior strategy of just copying boilerplate files into the output.
I think I'm ready to declare this closed. I haven't sent the new version of the maps to the server at AWS yet ... maybe I'll even do that now, although a little more tweaking may follow feedback from Lynne.
In current version December 2016, a separate html file is generated for each selection: perm pops, 200s, 300s, 400s, 600s, 1000s, 1200s+, all distances, and all inter-state perms. The user follows a link from a text list to the desired view.
Better would be dynamic selection: view or hide selected perms while viewing map.
In progress December 2016 by M. Young: Use a sidebar with selection options. Each group of markers for a particular distance is in an array. Javascript triggered by checkboxes either adds a particular group (when a box goes from unchecked to checked) or clears all and adds back checked groups (when a box is unchecked).
This approach will work for selecting distance groups, but does not work well for also selecting by interstate / all. (It could, but it means two groups per distance, "interstate only" and "all others" ... still a possibility.) To deal with this, my current plan is to create two maps, one for all perms (all distances, select distance groups dynamically) and another for interstate perms (all distances, select distance groups dynamically). To accommodate links between the two versions, and to make it easier to also generate the old-style single distance maps for backward compatibility, I am introducing jinja2 templating in place of the prior strategy of just copying boilerplate files into the output.
Completion target: Mid-January 2017.