loading popdat broke... handle small number of classes for colorbrewer

too
This commit is contained in:
Dustin Carlino 2019-06-09 13:39:20 -07:00
parent 8eb03b81c3
commit 903d3391db
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,4 @@
How to get https://www.arcgis.com/home/item.html?id=777604c09cd24b4eb72952229d6d4caf into qgis?
- map viewer -> content on sidebar -> description -> look for WMTSCapabilities.xml in source
- qgis, add layer from wmts

View File

@ -302,6 +302,9 @@ pub fn rotating_color_total(idx: usize, total: usize) -> Color {
if total > 9 {
return rotating_color_total(idx, 9);
}
if total < 3 {
return rotating_color_total(idx, 3);
}
// TODO Cache this
// TODO This palette doesn't contrast well with other stuff