Skip to content

Commit

Permalink
add unknown category
Browse files Browse the repository at this point in the history
  • Loading branch information
maneesha committed Feb 2, 2015
1 parent 7a723bc commit 6710d7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion district_geojson.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions test_map.html
Expand Up @@ -137,9 +137,9 @@
d == 'female' ? 'yellow' :
d == 'white' ? 'purple' :
d == 'black' ? 'orange' :
d == 'hispanic' ? 'beige' :
d == 'hispanic' ? 'coral' :
d == 'asian' ? 'magenta' :
'pink';
'gray';
};


Expand Down Expand Up @@ -228,6 +228,7 @@
grades[i] + '<br>' ;
}
console.log("DIV FOR CHANGE GENDER: ", div.innerHTML);
div.innerHTML += "<i style='background:gray'></i> unknown<br>"
return div;
};
legend.addTo(map);
Expand Down Expand Up @@ -255,6 +256,8 @@
'<i style="background:' + getColor(grades[i]) + '"></i> ' +
grades[i] + '<br>' ;
}
div.innerHTML += "<i style='background:gray'></i> unknown<br>"

return div;
};
legend.addTo(map);
Expand Down Expand Up @@ -284,6 +287,8 @@
'<i style="background:' + getColor(grades[i]) + '"></i> ' +
grades[i] + '<br>' ;
}
div.innerHTML += "<i style='background:gray'></i> unknown<br>"

return div;
};
legend.addTo(map);
Expand Down

0 comments on commit 6710d7b

Please sign in to comment.