From 903d3391db089ee136a78f617bca9bd4e5a03953 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Sun, 9 Jun 2019 13:39:20 -0700 Subject: [PATCH] loading popdat broke... handle small number of classes for colorbrewer too --- docs/design/notes/qgis.md | 4 ++++ editor/src/helpers.rs | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 docs/design/notes/qgis.md diff --git a/docs/design/notes/qgis.md b/docs/design/notes/qgis.md new file mode 100644 index 0000000000..30046fbfaa --- /dev/null +++ b/docs/design/notes/qgis.md @@ -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 diff --git a/editor/src/helpers.rs b/editor/src/helpers.rs index 2c53b463ae..b7d9e1c4b1 100644 --- a/editor/src/helpers.rs +++ b/editor/src/helpers.rs @@ -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