I'm having trouble updating the SVG map example that matches data from a TSV file to color states. Here's what I have. However, it draws the entire map including the map as the same color including filling the lines separating Alaska and Hawaii.
I'm trying to load data from an XML file once and then again after changing the child to create a heat map. Is there a way to do this without having to create a loop for each for new child? In this case I want a row for each month of unemployment data for every state. Thanks.
void setup() {
size(600, 600, P3D);
background(255);
smooth();
loadMonth();
loadMonth2();
}
void draw() {
}
void loadMonth() {
pushMatrix();
for (int i = 0; i < 50; i++) {
XMLElement xml = new XMLElement(this, "unemployment.xml");
This works but loads all rows after the 200ms has passed instead of loading each row after 200ms has elapsed before moving the next row. Any help would be greatly appreciated. Thanks.