State | EV | |||||
AK | 3 | |||||
AL | 9 | |||||
AR | 6 | |||||
AZ | 11 | |||||
CA | 54 | |||||
CO | 10 | |||||
CT | 7 | |||||
DC | 3 | |||||
DE | 3 | |||||
FL | 30 | |||||
GA | 16 | |||||
HI | 4 | |||||
IA | 6 | |||||
ID | 4 | |||||
IL | 19 | |||||
IN | 11 | |||||
KS | 6 | |||||
KY | 8 | |||||
LA | 8 | |||||
MA | 11 | |||||
MD | 10 | |||||
ME | 4 | |||||
MI | 15 | |||||
MN | 10 | |||||
MO | 10 | |||||
MS | 6 | |||||
MT | 4 | |||||
NC | 16 | |||||
ND | 3 | |||||
NE | 5 | |||||
NH | 4 | |||||
NJ | 14 | |||||
NM | 5 | |||||
NV | 6 | |||||
NY | 28 | |||||
OH | 17 | |||||
OK | 7 | |||||
OR | 8 | |||||
PA | 19 | |||||
RI | 4 | |||||
SC | 9 | |||||
SD | 3 | |||||
TN | 11 | |||||
TX | 40 | |||||
UT | 6 | |||||
VA | 13 | |||||
VT | 3 | |||||
WA | 12 | |||||
WI | 10 | |||||
WV | 4 | |||||
WY | 3 |
This repl creates a U.S. map that allows the user to combine multiple states into one with HTML, CSS, and SVG. Click on a state that isnt one of the 13 original colonies and then click on one of the colonies to assign the state to that colony. The data and visuals will be updated.
To view this on TripleLog, click here. To learn more, read this blog post;
The index.html is regenerated each time the server creates a new map.
There is lots of CSS to implement the logic of merges and some styling mixed in. It would be good to separate these two sets.
Run the createMap.js file to generate an updated map if you have made changes.
Near the top of the code you can change the year or the set of states to merge into.